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:
Poul-Henning Kamp 2002-10-13 16:04:46 +00:00
parent 795b630655
commit 2afdbfe1e6

View File

@ -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);