cache_fullpath - Guess mountpoints if requested
authorAlex Hornung <ahornung@gmail.com>
Wed, 24 Mar 2010 20:24:05 +0000 (20:24 +0000)
committerAlex Hornung <ahornung@gmail.com>
Wed, 24 Mar 2010 20:30:26 +0000 (20:30 +0000)
commit5b4cfb7e2cafb8792350bd0bf8f91934e8035c29
tree4bee0dedee112da9088f41b534d6b34a7f53c177
parent862aed0078c32b50b569918c90bea3c9cfab03d2
cache_fullpath - Guess mountpoints if requested

* cache_fullpath (and vn_fullpath) now take an extra parameter, guess,
  which, if != 0, makes cache_fullpath look for a matching mp if an ncp
  flagged as a mountpoint is found while traversing upwards.
  This fixes uses of *_fullpath when no nch is provided, but only a vp.

* Change all consumers of cache_fullpath and vn_fullpath to accomodate
  for the extra parameter.

Suggested-by: Matthew Dillon
13 files changed:
sys/dev/disk/vn/vn.c
sys/emulation/linux/i386/linprocfs/linprocfs_vnops.c
sys/kern/imgact_elf.c
sys/kern/imgact_resident.c
sys/kern/kern_jail.c
sys/kern/vfs_cache.c
sys/kern/vfs_mount.c
sys/kern/vfs_syscalls.c
sys/sys/mount.h
sys/sys/namecache.h
sys/sys/vnode.h
sys/vfs/isofs/cd9660/cd9660_rrip.c
sys/vfs/procfs/procfs_vnops.c