common/rc: generalize _get_filesize()
[xfstests-dev.git] / tests / overlay / 060
index 77ff01486386c3c047c39bcdd7a6872bb1081a97..34140e1256702bd813bbadcb14bebf81c8d2be19 100755 (executable)
@@ -99,7 +99,7 @@ check_file_size()
 {
        local target=$1 expected_size=$2 actual_size
 
-       actual_size=$(stat -c "%s" $target)
+       actual_size=$(_get_filesize $target)
 
        [ "$actual_size" == "$expected_size" ] || echo "Expected file size $expected_size but actual size is $actual_size"
 }