X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=blobdiff_plain;f=tests%2Fxfs%2F307;h=d8295245232c8b04ef85c2503ea1668688c983f1;hp=2a99459cfac9fdcc053a2a878066df27d8e4c353;hb=20cb5f11991ca0d4032a0256bcb4316e1d93880a;hpb=bf5a5da572472a010223d039d90e79ecb7dc5e3c diff --git a/tests/xfs/307 b/tests/xfs/307 index 2a99459c..d8295245 100755 --- a/tests/xfs/307 +++ b/tests/xfs/307 @@ -59,7 +59,7 @@ _get_agf_data() { field="$1" shift - xfs_db -c 'agf 1' "$@" -c "p $field" $SCRATCH_DEV | awk '{print $3}' + _scratch_xfs_db -c 'agf 1' "$@" -c "p $field" | awk '{print $3}' } _set_agf_data() { @@ -67,22 +67,15 @@ _set_agf_data() { value="$2" shift; shift - xfs_db -x -c 'agf 1' "$@" -c "write $field -- $value" $SCRATCH_DEV >> $seqres.full + _scratch_xfs_db -x -c 'agf 1' "$@" -c "write $field -- $value" >> $seqres.full } _get_sb_data() { - field="$1" - shift - - xfs_db -c 'sb 0' "$@" -c "p $field" $SCRATCH_DEV | awk '{print $3}' + _scratch_xfs_get_sb_field "$@" } _set_sb_data() { - field="$1" - value="$2" - shift; shift - - xfs_db -x -c 'sb 0' "$@" -c "write $field -- $value" $SCRATCH_DEV >> $seqres.full + _scratch_xfs_set_sb_field "$@" >> $seqres.full } _filter_leftover() { @@ -91,17 +84,17 @@ _filter_leftover() { _dump_status() { echo "** " "$@" - xfs_db -c 'sb 0' -c p $SCRATCH_DEV + _scratch_xfs_db -c 'sb 0' -c p echo "** agf header" - xfs_db -c 'agf 1' -c p $SCRATCH_DEV + _scratch_xfs_db -c 'agf 1' -c p echo "** refcntbt" - xfs_db -c 'agf 1' -c 'addr refcntroot' -c p $SCRATCH_DEV + _scratch_xfs_db -c 'agf 1' -c 'addr refcntroot' -c p echo "** rmapbt" - test $is_rmap -gt 0 && xfs_db -c 'agf 1' -c 'addr rmaproot' -c p $SCRATCH_DEV + test $is_rmap -gt 0 && _scratch_xfs_db -c 'agf 1' -c 'addr rmaproot' -c p echo "** bnobt" - xfs_db -c 'agf 1' -c 'addr bnoroot' -c p $SCRATCH_DEV + _scratch_xfs_db -c 'agf 1' -c 'addr bnoroot' -c p echo "** cntbt" - xfs_db -c 'agf 1' -c 'addr cntroot' -c p $SCRATCH_DEV + _scratch_xfs_db -c 'agf 1' -c 'addr cntroot' -c p } echo "We need AG1 to have a single free extent"