hammer2 - Make snapshot directive more convenient
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 1 Aug 2014 06:01:16 +0000 (23:01 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 1 Aug 2014 06:01:16 +0000 (23:01 -0700)
commitd0ceb67117bb129afc8c0d2884d298b24a243c20
tree41e73109c5971020bedf137679f8ebdec5fb97d1
parent5c88f2c7e3b244aa229ef6983e22989aaf97137e
hammer2 - Make snapshot directive more convenient

* Make the snapshot directive more intuitive.  The optional arguments
  are now (1) the <path> to snapshot and (2) the PFS label to use.
  If not specified, the PFS label is named after the PFS the snapshot
  is taken from, the last component of the path being snapshotted,
  and the date and time.

* pfs-list now takes an optional argument pointing at a mounted hammer2
  filesystem.  -s <path> still works, it just isn't as intuitive.
sbin/hammer2/cmd_snapshot.c
sbin/hammer2/hammer2.h
sbin/hammer2/main.c
sbin/newfs_hammer2/newfs_hammer2.c