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

Re: cvs commit: src/sbin/hammer Makefile cmd_snapshot.c hammer.h hammer.c


From: Michael Neumann <mneumann@xxxxxxxx>
Date: Wed, 25 Jun 2008 15:30:27 +0200

Michael Neumann wrote:
mneumann 2008/06/25 06:10:06 PDT

DragonFly src repository

Modified files:
sbin/hammer Makefile hammer.h hammer.c Added files:
sbin/hammer cmd_snapshot.c Log:
Implement: hammer snapshot <softlink-dir> [<filesystem>]

How about to change the command line syntax into:


hammer snapshot <softlink-dir> [<snapshot-name>] [<filesystem>]

Alternatively, it could be possible (slightly "harder" to implement), so
achive the same with:

hammer snapshot <softlink-dir+snapshot-name> [<filesystem>]

So that the hammer utility would determine whether the path given for
softlink-dir actually exists, if not, it is assumed to be the snapshot
name. I don't like it that much, because there are some implicit
assumption, so if nobody objects, I'd go with the first approach.

Right now, the snapshots generated are named after the transaction id,
something like: 0xffffffffffffffffff, which clearly is not that
beautiful!

Regards,

Michael



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