hammer2(8): Document cleanup command.
authorzrj <rimvydas.jasinskas@gmail.com>
Sat, 2 Dec 2017 17:40:08 +0000 (19:40 +0200)
committerzrj <zrj@dragonflybsd.org>
Sat, 2 Dec 2017 18:29:44 +0000 (20:29 +0200)
While there, do some misc whitespace cleanup.

sbin/hammer2/hammer2.8
sbin/hammer2/main.c

index 8f2ec8c..8ed8cae 100644 (file)
@@ -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.
index 1d10e57..e44fd6c 100644 (file)
@@ -468,13 +468,15 @@ usage(int code)
                "    -t type            PFS type for pfs-create\n"
                "    -u uuid            uuid for pfs-create\n"
                "\n"
+               "    cleanup [<path>...]          "
+                       "Run cleanup passes\n"
                "    connect <target>             "
                        "Add cluster link\n"
                "    debugspan <target>           "
                        "Debug spanning tree\n"
                "    chaindump <path>             "
                        "Dump in-memory chain topo at\n"
-               "    destroy <path>*             "
+               "    destroy <path>*              "
                        "Destroy a directory entry (only use if inode bad)\n"
                "    disconnect <target>          "
                        "Del cluster link\n"
@@ -496,11 +498,11 @@ usage(int code)
                        "Create a PFS\n"
                "    pfs-delete <label>           "
                        "Destroy a PFS\n"
-               "    snapshot <path> [<label>]           "
+               "    snapshot <path> [<label>]    "
                        "Snapshot a PFS or directory\n"
                "    service                      "
                        "Start service daemon\n"
-               "    stat [<path>]                "
+               "    stat [<path>]                "
                        "Return inode quota & config\n"
                "    leaf                         "
                        "Start pfs leaf daemon\n"
@@ -529,7 +531,7 @@ usage(int code)
                "    bulkfree path...             "
                        "Run bulkfree pass\n"
 #if 0
-               "    bulkfree-async path...             "
+               "    bulkfree-async path...       "
                        "Run bulkfree pass asynchronously\n"
 #endif
        );