From ca138928faddcadaf6175b2b3de24560187107b1 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Tue, 2 May 2017 11:12:31 -0500 Subject: [PATCH] xfs_db.8: document write -d option 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 Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- man/man8/xfs_db.8 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/man/man8/xfs_db.8 b/man/man8/xfs_db.8 index 460d89d0f..ef7cf843c 100644 --- a/man/man8/xfs_db.8 +++ b/man/man8/xfs_db.8 @@ -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. -- 2.47.2