diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-08-07 22:05:12 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-08-07 22:05:12 +0000 |
| commit | e83f1423535322d7600790a333025b9e81a43ffd (patch) | |
| tree | 5781ce74dac6ca3ae85928223d1fd10b401b89c6 /sys/fs | |
| parent | 6aa84a056a7d56cc236b5a3efff0c27f20f657fb (diff) | |
Notes
Diffstat (limited to 'sys/fs')
| -rw-r--r-- | sys/fs/msdosfs/msdosfs_vfsops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c index ccf4b7ba43ac1..c71f2bf3b6363 100644 --- a/sys/fs/msdosfs/msdosfs_vfsops.c +++ b/sys/fs/msdosfs/msdosfs_vfsops.c @@ -186,6 +186,9 @@ msdosfs_omount(mp, path, data, td) pmp = VFSTOMSDOSFS(mp); error = 0; if (!(pmp->pm_flags & MSDOSFSMNT_RONLY) && (mp->mnt_flag & MNT_RDONLY)) { + error = VFS_SYNC(mp, MNT_WAIT, td->td_ucred, td); + if (error) + return (error); flags = WRITECLOSE; if (mp->mnt_flag & MNT_FORCE) flags |= FORCECLOSE; |
