]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dounmount: do not call mountcheckdirs() for mounts with MNT_IGNORE
authoravg <avg@FreeBSD.org>
Mon, 16 May 2016 07:23:24 +0000 (07:23 +0000)
committeravg <avg@FreeBSD.org>
Mon, 16 May 2016 07:23:24 +0000 (07:23 +0000)
commit65bf3683236946d992fb33827f4bc8b691f0f39e
tree97f67d13e33c0c7103287d329cf54cd0d25b5049
parent6babf965828710aa3c7eb1948adf394eec4601b1
dounmount: do not call mountcheckdirs() for mounts with MNT_IGNORE

This is a bit hackish, but the flag is currently set only for ZFS
snapshots mounted under .zfs.  mountcheckdirs() can change cdir/rdir
references to a covered vnode.  But for the said snapshots the covered
vnode is really ephemeral and it must never be accessed (except
for a few specific cases).

To do: consider removing mountcheckdirs() entirely

MFC after: 5 days
sys/kern/vfs_mount.c