Make it impossible to clear the MNT_NFS4ACLS flag on ZFS filesystem

by using "mount -uw".

Reviewed by:	pjd
MFC after:	2 weeks
This commit is contained in:
Edward Tomasz Napierala 2011-02-06 23:34:09 +00:00
parent 2fee45fd74
commit dc7a965673

View File

@ -1021,7 +1021,7 @@ zfs_domount(vfs_t *vfsp, char *osname)
zfsvfs->z_vfs->mnt_stat.f_iosize = recordsize;
vfsp->vfs_data = zfsvfs;
vfsp->mnt_flag |= MNT_LOCAL | MNT_NFS4ACLS;
vfsp->mnt_flag |= MNT_LOCAL;
vfsp->mnt_kern_flag |= MNTK_MPSAFE;
vfsp->mnt_kern_flag |= MNTK_LOOKUP_SHARED;
vfsp->mnt_kern_flag |= MNTK_SHARED_WRITES;
@ -1203,6 +1203,8 @@ zfs_mount(vfs_t *vfsp)
goto out;
}
vfsp->vfs_flag |= MNT_NFS4ACLS;
/*
* When doing a remount, we simply refresh our temporary properties
* according to those options set in the current VFS options.