HAMMER - Enhance cleanup utility for HAMMER v3
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 15 Oct 2009 00:26:55 +0000 (17:26 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 15 Oct 2009 00:26:55 +0000 (17:26 -0700)
commitb5ec5ad48a458f682b761a5bd13f36fbf72e924e
treeabd684d0a405aefb67e67920aa75a63b0cca3d73
parent0e33f7f87f55a9458bd0b5308004d46c8f327b2a
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.
sbin/hammer/cmd_cleanup.c
sbin/hammer/cmd_snapshot.c
sbin/hammer/hammer.8