HAMMER Utilities: Feature add
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 13 May 2008 20:49:34 +0000 (20:49 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 13 May 2008 20:49:34 +0000 (20:49 +0000)
commit367431cff39e8b0baef6f3272beb2adf9197c18e
tree803432a33350a2b386dc67e347d30a1f9b300451
parentf36a973718724e1517b98ee83cfcba4ec78cbe0f
HAMMER Utilities: Feature add

Add a new command 'synctid <filesystem>' which provides a formal transaction
id representing the state of the filesystem as of when it is called.  The
filesystem will be properly synced by the command and an interlocked
timestamp will be returned.

Remove the -x option, remove the calls to sync() by the 'now' and 'now64'
directives.  No longer sleep for one second in 'now'.  Document that these
directives do not return a guaranteed transaction id.
sbin/hammer/Makefile
sbin/hammer/cmd_synctid.c [copied from sbin/hammer/hammer.h with 60% similarity]
sbin/hammer/hammer.8
sbin/hammer/hammer.c
sbin/hammer/hammer.h