common/rc: generalize _get_filesize()
[xfstests-dev.git] / common / populate
index eeac66d70c4a030bd29efcf4e14d8fc119d8e382..0b036051c8c30c738813826fe633942d76d74d17 100644 (file)
@@ -777,7 +777,7 @@ _fill_fs()
                fi
 
                if [ -f $dir/$file_count ]; then
                fi
 
                if [ -f $dir/$file_count ]; then
-                       bytes_written=$(stat -c '%s' $dir/$file_count)
+                       bytes_written=$(_get_filesize $dir/$file_count)
                fi
 
                # If there was no room to make the file, then divide it in
                fi
 
                # If there was no room to make the file, then divide it in