git: hammer2 - Make snapshot directive more convenient
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Jul 31 23:05:24 PDT 2014
commit d0ceb67117bb129afc8c0d2884d298b24a243c20
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Jul 31 23:01:16 2014 -0700
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.
Summary of changes:
sbin/hammer2/cmd_snapshot.c | 33 +++++++++++++++++++++++++--------
sbin/hammer2/hammer2.h | 2 +-
sbin/hammer2/main.c | 31 +++++++++++++++++++++----------
sbin/newfs_hammer2/newfs_hammer2.c | 2 +-
4 files changed, 48 insertions(+), 20 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d0ceb67117bb129afc8c0d2884d298b24a243c20
--
DragonFly BSD source repository
More information about the Commits
mailing list