aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-01-11 07:40:25 +0000
committerTheodore Ts'o <tytso@mit.edu>2013-01-12 19:26:37 -0500
commit85a24385b6702ca207165a18bc08fb92f5e6c986 (patch)
treec0642c1f6add7ffcfcf837769b9a3010b463954c
parentda489dd2f3287b644c792c4e7ffb530a8ae0b9a2 (diff)
downloade2fsprogs-85a24385b6702ca207165a18bc08fb92f5e6c986.tar.gz
e2fsprogs-85a24385b6702ca207165a18bc08fb92f5e6c986.tar.xz
e2fsprogs-85a24385b6702ca207165a18bc08fb92f5e6c986.zip
debugfs: document zap_block & block_dump
What little docs there were had a cut & paste error. We can do better. :) Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--debugfs/debug_cmds.ct4
-rw-r--r--debugfs/debugfs.8.in12
2 files changed, 14 insertions, 2 deletions
diff --git a/debugfs/debug_cmds.ct b/debugfs/debug_cmds.ct
index 520933aa..9a05ef73 100644
--- a/debugfs/debug_cmds.ct
+++ b/debugfs/debug_cmds.ct
@@ -181,10 +181,10 @@ request do_set_mmp_value, "Set MMP value",
request do_extent_open, "Open inode for extent manipulation",
extent_open, eo;
-request do_zap_block, "Zap block",
+request do_zap_block, "Zap block: fill with 0, pattern, flip bits etc.",
zap_block, zap;
-request do_dump_block, "Zap block",
+request do_dump_block, "Dump contents of a block",
block_dump, bp;
end;
diff --git a/debugfs/debugfs.8.in b/debugfs/debugfs.8.in
index ea3375e3..bf93622e 100644
--- a/debugfs/debugfs.8.in
+++ b/debugfs/debugfs.8.in
@@ -168,6 +168,10 @@ Print the physical block number corresponding to the logical block number
in the inode
.IR filespec .
.TP
+.I block_dump [-f out_file] block_num
+Dump the contents of a block, optionally to
+.IR out_file .
+.TP
.I cat filespec
Dump the contents of the inode
.I filespec
@@ -604,6 +608,14 @@ Create a file in the filesystem named
and copy the contents of
.I source_file
into the destination file.
+.TP
+.I zap_block [-f file] [-o offset] [-l length] [-p pattern] block_num
+Zero, or pattern-fill, portions of a block within a file or
+within the filesystem.
+.TP
+.I zap_block [-f file] [-b bit] block_num
+Bit-flip portions of a block within a file or
+within the filesystem.
.SH ENVIRONMENT VARIABLES
.TP
.B DEBUGFS_PAGER, PAGER