common/rc: generalize _get_filesize()
[xfstests-dev.git] / tests / generic / 275
index a934c19c6dfcee161f02445c0bda536f4c3e70a0..adc8285677f17493af1c190b2e8d6f064ec4c014 100755 (executable)
@@ -73,7 +73,7 @@ echo "Bytes written until ENOSPC:" >>$seqres.full
 du $SCRATCH_MNT/tmp1 >>$seqres.full
 
 # And at least some of it should succeed.
-_filesize=`ls -l $SCRATCH_MNT/tmp1 | awk '{print $5}'`
+_filesize=`_get_filesize $SCRATCH_MNT/tmp1`
 [ $_filesize -lt $((128 * 1024)) ] && \
        _fail "Partial write until enospc failed; wrote $_filesize bytes."