git: HAMMER - Enhance cleanup utility for HAMMER v3

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Oct 14 17:34:02 PDT 2009


commit b5ec5ad48a458f682b761a5bd13f36fbf72e924e
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Oct 14 17:26:55 2009 -0700

    HAMMER - Enhance cleanup utility for HAMMER v3
    
    * For each PFS if the snapshots directory has not been overridden in
      the PFS config it will be migrated from <fs>/snapshots to
      /var/hammer/<path_from_root>.  The snapshots directory for the
      root directory itself will be called /var/hammer/root.  The old
      <fs>/snapshots directory will then removed.
    
      If a PFS has a snapshots directory config set no migration will
      occur.  Users can migrate it manually and then clear the snapshots
      directory in the PFS config if they desire.  We can't do it
      automatically because users might use this mechanic to mix snapshots
      with the live backup and needless to say cpdup()ing a live backup
      into /var is probably a bad idea.
    
    * Fix a bug when generating softlinks in a directory that is not
      under the PFS being snapshotted.
    
    * Add an optional third argument to the 'hammer snapshot' directive
      to allow a meta-data note to be specified.  The meta-data entry
      is created whether you specify a note or not.

Summary of changes:
 sbin/hammer/cmd_cleanup.c  |  114 +++++++++++++++++++++++++++++++------------
 sbin/hammer/cmd_snapshot.c |   15 +++++-
 sbin/hammer/hammer.8       |   13 ++++-
 3 files changed, 107 insertions(+), 35 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b5ec5ad48a458f682b761a5bd13f36fbf72e924e


-- 
DragonFly BSD source repository





More information about the Commits mailing list