DragonFly commits List (threaded) for 2009-03
DragonFly-188.8.131.525.gcb3c7 master sbin/hammer cmd_cleanup.c sys/vfs/hammer hammer_vnops.c
Author: Matthew Dillon <firstname.lastname@example.org>
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 <email@example.com>
Summary of changes:
sbin/hammer/cmd_cleanup.c | 3 ++-
sys/vfs/hammer/hammer_vnops.c | 13 ++++++++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
DragonFly BSD source repository