common/rc: generalize _get_filesize()
[xfstests-dev.git] / tests / generic / 297
index 5950a8da3d652f40471080c269817ce5884a57ab..eb08a9e314b9026de93ceafb1a824408b6541583 100755 (executable)
@@ -66,7 +66,7 @@ done
 
 echo "Try to kill reflink after a shorter period of time"
 kill_after=2   # give us a shorter time to die
-n=$(stat -c '%s' $testdir/file1)
+n=$(_get_filesize $testdir/file1)
 echo "performing kill test on $n bytes..." >> $seqres.full
 touch $TEST_DIR/before
 $TIMEOUT_PROG -s INT ${kill_after}s $XFS_IO_PROG -f -c "reflink $testdir/file1 0 $n $n" $testdir/file1 >> $seqres.full 2>&1