Pass flags to VOP_CLOSE() corresponding to what was passed to VOP_OPEN().
Submitted by: "Peter Edwards" <pmedwards@eircom.net>
This commit is contained in:
parent
795b630655
commit
2afdbfe1e6
@ -508,6 +508,7 @@ ntfs_unmount(
|
||||
|
||||
vinvalbuf(ntmp->ntm_devvp, V_SAVE, NOCRED, td, 0, 0);
|
||||
|
||||
ronly = (mp->mnt_flag & MNT_RDONLY) != 0;
|
||||
error = VOP_CLOSE(ntmp->ntm_devvp, ronly ? FREAD : FREAD|FWRITE,
|
||||
NOCRED, td);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user