]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix "mount -a" for NFS and ZFS filesystems with shared mountpoints
authorasomers <asomers@FreeBSD.org>
Mon, 21 Dec 2015 22:19:22 +0000 (22:19 +0000)
committerasomers <asomers@FreeBSD.org>
Mon, 21 Dec 2015 22:19:22 +0000 (22:19 +0000)
commitec468634856757e0c5bc091c7ffb4e64d1385397
tree542cb66a20a783d96ac83927ea17c16a44054d27
parente072c1a126983056e33db2f81c093b7b720daea8
Fix "mount -a" for NFS and ZFS filesystems with shared mountpoints

sbin/mount.c
Check whether an fstab entry has the same fstype as a mounted
filesystem before declaring it to be mounted. This will allow NFS
filesystems that share a mountpoint with a local filesystem to be
automatically mounted at boot.

This is not such an unusual situation. For example, if somebody uses
the standard installer with a ZFS root, he'll get a /usr/home
filesystem, even though he may choose to mount /usr/home over NFS.

Reviewed by: trasz
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D4556
sbin/mount/mount.c