X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=blobdiff_plain;f=tests%2Fxfs%2F307;h=d8295245232c8b04ef85c2503ea1668688c983f1;hp=4ce3e66342b5816f253015ccfa936a9149f41cde;hb=20cb5f11991ca0d4032a0256bcb4316e1d93880a;hpb=da41142607c216454e74cffe2e15f68349d47dbb diff --git a/tests/xfs/307 b/tests/xfs/307 index 4ce3e663..d8295245 100755 --- a/tests/xfs/307 +++ b/tests/xfs/307 @@ -71,18 +71,11 @@ _set_agf_data() { } _get_sb_data() { - field="$1" - shift - - _scratch_xfs_db -c 'sb 0' "$@" -c "p $field" | awk '{print $3}' + _scratch_xfs_get_sb_field "$@" } _set_sb_data() { - field="$1" - value="$2" - shift; shift - - _scratch_xfs_db -x -c 'sb 0' "$@" -c "write $field -- $value" >> $seqres.full + _scratch_xfs_set_sb_field "$@" >> $seqres.full } _filter_leftover() {