vfsops - add two new ops, ncpgen_set, ncpgen_test
authorAlex Hornung <ahornung@gmail.com>
Mon, 5 Mar 2012 21:52:44 +0000 (21:52 +0000)
committerAlex Hornung <ahornung@gmail.com>
Mon, 5 Mar 2012 22:08:05 +0000 (22:08 +0000)
commit75779c3c82c251022c12651138d895e6e637633f
tree5960824b84965b8a3b8c8499675eab2960742123
parent7bf41faaed5442d0a7f34840646b4a385034515c
vfsops - add two new ops, ncpgen_set, ncpgen_test

 * ncpgen_set takes care of setting the namecache generation in an ncp,
   while ncpgen_test can force zapping a resolved negative cache hit.

 * Make use of the functions in devfs to keep the functionality we had
   before.

 * Also pass the calls through in nullfs - this should fix a problem
   with posix_openpt when /dev is a nullfs mount of devfs.

Reported-by: Markus Pfeiffer (profmakx)
sys/kern/vfs_cache.c
sys/kern/vfs_default.c
sys/kern/vfs_init.c
sys/sys/mount.h
sys/vfs/devfs/devfs_vfsops.c
sys/vfs/nullfs/null_vfsops.c