From: Darrick J. Wong Date: Fri, 5 Oct 2018 00:19:33 +0000 (-0700) Subject: xfs/270: use _scratch_xfs_set_metadata_field to fuzz rocompat bits X-Git-Tag: v2022.05.01~1379 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8cd8fa12e1e47f678512ffa0ea4f649e5c42c782;p=users%2Fhch%2Fxfstests-dev.git xfs/270: use _scratch_xfs_set_metadata_field to fuzz rocompat bits Use the helper to set the metadata field so that we can bypass write verifier checks. Signed-off-by: Darrick J. Wong Reviewed-by: Xiao Yang Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/270 b/tests/xfs/270 index da66bc339..fb72ba7c7 100755 --- a/tests/xfs/270 +++ b/tests/xfs/270 @@ -44,8 +44,8 @@ _scratch_mkfs_xfs >>$seqres.full 2>&1 # set the highest bit of features_ro_compat, use it as an unknown # feature bit. If one day this bit become known feature, please # change this case. -$XFS_DB_PROG -x -c "sb 0" -c "write -d features_ro_compat $((2**31))" \ - $SCRATCH_DEV | grep -v "Allowing write of corrupted data" +_scratch_xfs_set_metadata_field "features_ro_compat" "$((2**31))" "sb 0" | \ + grep 'features_ro_compat' # rw mount with unknown ro-compat feature should fail echo "rw mount test"