Patchwork debugfs: document htree-related commands in man page

login
register
mail settings
Submitter Eric Sandeen
Date May 11, 2011, 4:49 p.m.
Message ID <4DCABE03.7040300@redhat.com>
Download mbox | patch
Permalink /patch/95172/
State Accepted
Headers show

Comments

Eric Sandeen - May 11, 2011, 4:49 p.m.
The debugfs commands dirsearch, dx_hash, and htree_dump were
never documented in the man page.  Do so.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

Please feel free to check my manpage-fu, as well as checking
for accurate descriptions of these commands, thanks...


--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Theodore Ts'o - May 15, 2011, 3:39 a.m.
On Wed, May 11, 2011 at 11:49:07AM -0500, Eric Sandeen wrote:
> The debugfs commands dirsearch, dx_hash, and htree_dump were
> never documented in the man page.  Do so.
> 
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>

Thanks, added to the e2fsprogs "next" branch.

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/debugfs/debugfs.8.in b/debugfs/debugfs.8.in
index 41c73fd..f5deb7a 100644
--- a/debugfs/debugfs.8.in
+++ b/debugfs/debugfs.8.in
@@ -187,6 +187,12 @@  master superblock.
 Clear the contents of the inode 
 .IR file .
 .TP
+.I dirsearch filespec filename
+Search the directory
+.I filespec
+for
+.IR filename .
+.TP
 .I dump [-p] filespec out_file
 Dump the contents of the inode 
 .I filespec
@@ -199,6 +205,16 @@  option is given set the owner, group and permissions information on
 to match 
 .IR filespec .
 .TP
+.I dx_hash [-h hash_alg] [-s hash_seed] filename
+Calculate the directory hash of
+.IR filename .
+The hash algorithm specified with
+.I -h
+may be "legacy" "half_md4" or "tea".
+The hash seed specified with
+.I -s
+must be in UUID format.
+.TP
 .I dump_extents [-n] [-l] filespec
 Dump the the extent tree of the inode
 .IR filespec .
@@ -264,6 +280,11 @@  Free the inode specified by
 Print a list of commands understood by 
 .BR debugfs .
 .TP
+.I htree_dump filespec
+Dump the hash-indexed directory
+.IR filespec ,
+showing its tree structure.
+.TP
 .I icheck block ...
 Print a listing of the inodes which use the one or more blocks specified
 on the command line.