]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_db.8: document write -d option
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 2 May 2017 16:12:31 +0000 (11:12 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 2 May 2017 16:12:31 +0000 (11:12 -0500)
The xfs_db write "-d" option allows us to write bad
data with a good CRC, as added in
86769b3 xfs_db: allow recalculating CRCs on invalid metadata
but never documented, so do that now.

[sandeen: split out doc patch]

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
man/man8/xfs_db.8

index 460d89d0f5d01779f51b7909bd622edee013b99d..ef7cf843c3689d1f5c6bc79ebd38b7e5f3176eb4 100644 (file)
@@ -755,7 +755,7 @@ and
 bits respectively, and their string equivalent reported
 (but no modifications are made).
 .TP
-.BI "write [\-c] [" "field value" "] ..."
+.BI "write [\-c] [\-d] [" "field value" "] ..."
 Write a value to disk.
 Specific fields can be set in structures (struct mode),
 or a block can be set to data values (data mode),
@@ -778,6 +778,11 @@ with no arguments gives more information on the allowed commands.
 .B \-c
 Skip write verifiers and CRC recalculation; allows invalid data to be written
 to disk.
+.TP 0.4i
+.B \-d
+Skip write verifiers but perform CRC recalculation.
+This allows invalid data to be written to disk to
+test detection of invalid data.  (This is not possible for some types.)
 .RE
 .SH TYPES
 This section gives the fields in each structure type and their meanings.