common/rc: factor out _scratch_xfs_[get|set]_sb_field
[xfstests-dev.git] / tests / xfs / 307
index 4ce3e66342b5816f253015ccfa936a9149f41cde..d8295245232c8b04ef85c2503ea1668688c983f1 100755 (executable)
@@ -71,18 +71,11 @@ _set_agf_data() {
 }
 
 _get_sb_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() {
 }
 
 _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() {
 }
 
 _filter_leftover() {