Don't use the statfs field f_mntonname in filesystems. For the userland
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 2 Feb 2005 21:34:19 +0000 (21:34 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 2 Feb 2005 21:34:19 +0000 (21:34 +0000)
commit75ffff0d6f3520361771d057b364af7f81ebb36f
tree40c248197be19bfbf6ed192f2309909021836e7b
parent6ce6e6d39b17b73aca2e4477e27c438d30384529
Don't use the statfs field f_mntonname in filesystems. For the userland
export code, it can synthesized from mnt_ncp.
For debugging code, use f_mntfromname, it should be enough to find
culprit. The vfs_unmountall doesn't use code_fullpath to avoid problems
with resource allocation and to make it more likely that a call from ddb
succeds.
Change getfsstat and fhstatfs to not show directories outside a chroot
path, with the exception of the filesystem counting the chroot root itself.
27 files changed:
sys/emulation/linux/i386/linprocfs/linprocfs_vfsops.c
sys/kern/vfs_cache.c
sys/kern/vfs_mount.c
sys/kern/vfs_subr.c
sys/kern/vfs_syscalls.c
sys/vfs/coda/coda_vfsops.c
sys/vfs/fdesc/fdesc_vfsops.c
sys/vfs/gnu/ext2fs/ext2_vfsops.c
sys/vfs/hpfs/hpfs_vfsops.c
sys/vfs/isofs/cd9660/cd9660_rrip.c
sys/vfs/isofs/cd9660/cd9660_vfsops.c
sys/vfs/mfs/mfs_vfsops.c
sys/vfs/msdosfs/msdosfs_vfsops.c
sys/vfs/nfs/nfs_vfsops.c
sys/vfs/ntfs/ntfs_vfsops.c
sys/vfs/nullfs/null_vfsops.c
sys/vfs/nwfs/nwfs_vfsops.c
sys/vfs/portal/portal_vfsops.c
sys/vfs/procfs/procfs_vfsops.c
sys/vfs/smbfs/smbfs_vfsops.c
sys/vfs/udf/udf_vfsops.c
sys/vfs/ufs/ffs_softdep.c
sys/vfs/ufs/ffs_vfsops.c
sys/vfs/ufs/ufs_lookup.c
sys/vfs/ufs/ufs_quota.c
sys/vfs/umapfs/umap_vfsops.c
sys/vfs/union/union_vfsops.c