Fix the file size checks so it works on IRIX too.
[xfstests-dev.git] / 179
diff --git a/179 b/179
index feeddccef00c5f108c9b5bfc522e0abc729cb995..6efb70fbf9752a1fedfe7de614e801d11b21611c 100644 (file)
--- a/179
+++ b/179
@@ -47,8 +47,8 @@ _check_files()
                # if file is missing then fsync failed
                if [ -e $file ]
                then
-                       # if file size is not 32k then fsync failed
-                       if [ `stat -c %s $file` -eq 32768 ]
+                       # if file size is not 32KB then fsync failed
+                       if [ `ls -l $file | tr -s ' ' | cut -d ' ' -f 5` -eq 32768 ]
                        then
                                # if file has non-zero size but no extents then it's contents will be NULLs, bad.
                                if xfs_bmap $file | grep 'no extents' > /dev/null