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

cvs commit: src/sbin/hammer Makefile cmd_prune.c cmd_softprune.c hammer.8 hammer.c hammer.h


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 31 May 2008 11:45:04 -0700 (PDT)

dillon      2008/05/31 11:45:04 PDT

DragonFly src repository

  Modified files:
    sbin/hammer          Makefile cmd_prune.c hammer.8 hammer.c 
                         hammer.h 
  Added files:
    sbin/hammer          cmd_softprune.c 
  Log:
  HAMMER Utilities: Add the 'hammer softprune' command.
  
  Add a new hammer pruning command called 'hammer softprune'.  This command
  is much simpler to use then the 'hammer prune' command.  You simply specify
  a directory containing softlinks to HAMMER snapshots, typically in the form:
  "<path_to_hammer_filesystem>/@@0x<16-char-transaction_id>".  The command
  will scan the directory non-recursively, collect all the softlinks, extract
  the transaction ids, and prune the HAMMER filesystem to contain only those
  snapshots.
  
  In addition, information created before the snapshot softlink with the
  lowest transaction id is destroyed and information created after the
  softlink with the highest transaction id is retained (remains fine-grained).
  
  This gives the administrator an easy way to maintain official snapshots
  while at the same time retaining our 'undo' capability by leaving recent
  modifications intact.
  
  A simple cron job or script coupled with the use of the 'hammer synctid'
  can be used to create a snapshot softlink every so often, and older
  snapshots can be cleaned out or thinned simply by removing the associated
  softlinks, and then re-running 'hammer softprune' on the directory
  containing the softlinks.
  
  Unlike the 'hammer prune' command, the softprune command does not require
  the time ranges for snapshots to be well-ordered.
  
  Revision  Changes    Path
  1.12      +2 -2      src/sbin/hammer/Makefile
  1.12      +2 -0      src/sbin/hammer/cmd_prune.c
  1.18      +41 -0     src/sbin/hammer/hammer.8
  1.20      +5 -0      src/sbin/hammer/hammer.c
  1.14      +2 -0      src/sbin/hammer/hammer.h


http://www.dragonflybsd.org/cvsweb/src/sbin/hammer/Makefile.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sbin/hammer/cmd_prune.c.diff?r1=1.11&r2=1.12&f=u
http://www.dragonflybsd.org/cvsweb/src/sbin/hammer/hammer.8.diff?r1=1.17&r2=1.18&f=u
http://www.dragonflybsd.org/cvsweb/src/sbin/hammer/hammer.c.diff?r1=1.19&r2=1.20&f=u
http://www.dragonflybsd.org/cvsweb/src/sbin/hammer/hammer.h.diff?r1=1.13&r2=1.14&f=u



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