DragonFly BSD
DragonFly commits List (threaded) for 2013-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: hammer2 - Add 'snapshot' directive


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 7 May 2013 19:40:01 -0700 (PDT)

commit 87b1094e978b52846d993bf506914b6cb63bb32d
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]