common/rc: generalize _get_filesize()
[xfstests-dev.git] / tests / xfs / 076
index e8b191c49a4a33512c786a995c5706f54ab7b65c..2dcdd30c7d6a00d1ee0edcf5f2318553b10d93ec 100755 (executable)
@@ -93,7 +93,7 @@ _consume_freesp $SCRATCH_MNT/spc
 # space. Note that we start at the end of the file and work backwards as a
 # reverse allocation pattern increases the chances of both left and right sparse
 # record merges.
-offset=`stat -c "%s" $SCRATCH_MNT/spc`
+offset=`_get_filesize $SCRATCH_MNT/spc`
 offset=$((offset - $CHUNK_SIZE * 2))
 while [ $offset -ge 0 ]; do
        $XFS_IO_PROG -c "fpunch $offset $CHUNK_SIZE" $SCRATCH_MNT/spc \