From 4aedc17ba1373d11ea677dfbc78f81f635924f5d Mon Sep 17 00:00:00 2001 From: zrj Date: Sat, 2 Dec 2017 19:40:08 +0200 Subject: [PATCH] hammer2(8): Document cleanup command. While there, do some misc whitespace cleanup. --- sbin/hammer2/hammer2.8 | 5 ++++- sbin/hammer2/main.c | 10 ++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/sbin/hammer2/hammer2.8 b/sbin/hammer2/hammer2.8 index 8f2ec8c0f6..8ed8caea70 100644 --- a/sbin/hammer2/hammer2.8 +++ b/sbin/hammer2/hammer2.8 @@ -30,7 +30,7 @@ .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd March 26, 2015 +.Dd December 2, 2017 .Dt HAMMER2 8 .Os .Sh NAME @@ -83,6 +83,9 @@ locally on the host in order to be able to issue commands for other PFSs on the filesystem. The mount also enables PFS configuration scanning for that filesystem. .Bl -tag -width indent +.\" ==== cleanup ==== +.It Cm cleanup Op path +Perform manual cleanup passes on paths or all mounted partitions. .\" ==== connect ==== .It Cm connect Ar target Add a cluster link entry to the volume header. diff --git a/sbin/hammer2/main.c b/sbin/hammer2/main.c index 1d10e57ab4..e44fd6c56a 100644 --- a/sbin/hammer2/main.c +++ b/sbin/hammer2/main.c @@ -468,13 +468,15 @@ usage(int code) " -t type PFS type for pfs-create\n" " -u uuid uuid for pfs-create\n" "\n" + " cleanup [...] " + "Run cleanup passes\n" " connect " "Add cluster link\n" " debugspan " "Debug spanning tree\n" " chaindump " "Dump in-memory chain topo at\n" - " destroy * " + " destroy * " "Destroy a directory entry (only use if inode bad)\n" " disconnect " "Del cluster link\n" @@ -496,11 +498,11 @@ usage(int code) "Create a PFS\n" " pfs-delete