DragonFly-2.3.0.385.gcb3c7 master sbin/hammer cmd_cleanup.c sys/vfs/hammer hammer_vnops.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Mar 12 09:10:04 PDT 2009
commit cb3c760c39e6b389729c7f8d6e152f7e20c39879
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Mar 12 09:03:08 2009 -0700
HAMMER VFS - return shorter-form softlinks "@@-1:%05d" when appropriate.
The HAMMER VFS supports a short "@@-1:%05d" for master PFSs. Adjust the
HAMMER VFS to return softlinks in that form and adjust the hammer cleanup
code to recognize softlinks in that form.
Note that PFS softlinks are created as "@@PFS%05d", but the HAMMER VFS
presents them in an expanded form which allows the HAMMER VFS to reflect
the latest synchronized transaction id on slave PFSs. This also prevents
slave PFSs from confusing DragonFly's namecache as each snapshot will appear
to be an entirely different path.
Unfortunately this does mean that cpdup/cp/tar will pickup a translated
softlink and not the actual one. It's just something else to remember
about these 'weird' PFS mount points.
Suggested-by: YONETANI Tomokazu <qhwt+dfly at les.ath.cx>
Summary of changes:
sbin/hammer/cmd_cleanup.c | 3 ++-
sys/vfs/hammer/hammer_vnops.c | 13 ++++++++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cb3c760c39e6b389729c7f8d6e152f7e20c39879
--
DragonFly BSD source repository
More information about the Commits
mailing list