HAMMER 26/many: More NFS support work, rename fixes
commite1599b0014a02729990b73cc8442b30645ce17af
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 6 Feb 2008 00:27:27 +0000 (6 00:27 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 6 Feb 2008 00:27:27 +0000 (6 00:27 +0000)
treec1ac515e11d35fbf14b3290da0b39b8a4c157aad
parent981332dc2527bd4f8dc78fc881df5dd9bc388064
HAMMER 26/many: More NFS support work, rename fixes

* Add a fakename return argument to vop_nlookupdotdot().  This allows HAMMER
  to supply a fake name for historical (@@<timestamp>) transitions when
  regenerating the namecache topology.  The feature is needed when operating
  as a NFS server.

* Do not mark a vnode VROOT if it is a historical root rather than the
  realtime root.  This fixes confusion the namecache has when dealing
  with the root vnode of a HAMMER filesystem.

* Fix a bug in nrename().  ino_data.parent_obj_id was not being properly
  adjusted when moving directories.
sys/kern/vfs_cache.c
sys/kern/vfs_vopops.c
sys/sys/vfsops.h