common/rc: generalize _get_filesize()
[xfstests-dev.git] / common / rc
index 657d05d36d9968e3c96e11909b71df115f9e57b3..ef0c250923e4c38752eddcd679c66f3f8406ded2 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -165,6 +165,11 @@ if [ ! -z "$REPORT_LIST" ]; then
        _assert_report_list
 fi
 
+_get_filesize()
+{
+    stat -c %s "$1"
+}
+
 _mount()
 {
     $MOUNT_PROG `_mount_ops_filter $*`