Message ID | 153869877319.26648.6762297729048228417.stgit@magnolia (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | fstests: fixes and new tests | expand |
On 2018/10/05 8:19, Darrick J. Wong wrote: > From: Darrick J. Wong<darrick.wong@oracle.com> > > Use the helper to set the metadata field so that we can bypass write > verifier checks. Hi Darrick, When write command doesn't support -d option, xfs/270 with the patch works well. Reviewed-by: Xiao Yang <yangx.jy@cn.fujitsu.com> Thanks, Xiao Yang > Signed-off-by: Darrick J. Wong<darrick.wong@oracle.com> > --- > tests/xfs/270 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > > diff --git a/tests/xfs/270 b/tests/xfs/270 > index da66bc33..fb72ba7c 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" > > > >
diff --git a/tests/xfs/270 b/tests/xfs/270 index da66bc33..fb72ba7c 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"