hammer2 - Add 'snapshot' directive
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 8 May 2013 02:37:48 +0000 (19:37 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 8 May 2013 02:37:48 +0000 (19:37 -0700)
commit87b1094e978b52846d993bf506914b6cb63bb32d
tree793b12b0341519106c0d7278284b4732b31c99f5
parenta864c5d920f8c54e27c4b873076d859138af21a0
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).
sbin/hammer2/cmd_pfs.c
sbin/hammer2/cmd_snapshot.c
sbin/hammer2/hammer2.h
sbin/hammer2/main.c