git: hammer2 - Add 'snapshot' directive

Matthew Dillon dillon at crater.dragonflybsd.org
Tue May 7 19:40:01 PDT 2013


commit 87b1094e978b52846d993bf506914b6cb63bb32d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue May 7 19:37:48 2013 -0700

    hammer2 - Add 'snapshot' directive
    
    * Add the snapshot directive, which by default snapshots the current
      directory or the specified directory.
    
      A label is optional.  If not specified the PFS name prefix and a timecode
      postfix is constructed.  Snapshots are created in the super-root, so use
      pfs-list to list them along with any discrete PFS's.
    
    * Fix the pfs-delete directive.
    
    * Subdirectories of the H2 mount can be snapshotted with the caveat that
      hardlinks which cross above the snapshot directory will not be in the
      snapshot (have lookup failures when accessed via the snapshot).

Summary of changes:
 sbin/hammer2/cmd_pfs.c      |  5 ++++-
 sbin/hammer2/cmd_snapshot.c | 46 ++++++++++++++++++++++++++++++++++++++++++++-
 sbin/hammer2/hammer2.h      |  1 +
 sbin/hammer2/main.c         |  8 ++++++++
 4 files changed, 58 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/87b1094e978b52846d993bf506914b6cb63bb32d


-- 
DragonFly BSD source repository


More information about the Commits mailing list