]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_db: trash the block at the top of the cursor stack
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 13 Oct 2015 23:25:23 +0000 (10:25 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 13 Oct 2015 23:25:23 +0000 (10:25 +1100)
commit37faa0daed5a333dc0fd06d649d35b51ba6c6297
treee6e6d447c024d1ef20bbe787d24c98cd8659e9d9
parentbdc2a208c8759529b84b34f82b1816e383cc9323
xfs_db: trash the block at the top of the cursor stack

Add a new -z option to blocktrash to make it trash the block that's at
the top of the stack, so that we can perform targeted fuzzing.  While
we're at it, prevent fuzzing off the end of the buffer and add a -o
parameter so that we can specify an offset to start fuzzing from.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/check.c
man/man8/xfs_db.8