xfs/288: use -d option of xfs_db write command for v5 XFS
[xfstests-dev.git] / tests / xfs / 288
index bccdb6fc35ec55ed8405adf10b30ebdea242c082..f4165b6c97cbb8fe0de1b5d20cb34c960198ef69 100755 (executable)
@@ -56,9 +56,8 @@ $SETFATTR_PROG -n "user.testattr${seq}" \
 
 _scratch_unmount
 # manually corrupt the XFS, by set the header count of attr to 0
-_scratch_xfs_db -x -c "inode $inum" \
-                  -c "ablock 0" \
-                  -c "write hdr.count 0" >> $seqres.full
+_scratch_xfs_set_metadata_field "hdr.count" "0" \
+                               "inode $inum" "ablock 0" >> $seqres.full
 
 # make sure xfs_repair can find above corruption. If it can't, that
 # means we need to fix this bug on current xfs_repair