mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Fix the file size checks so it works on IRIX too.
Merge of master-melb:xfs-cmds:30336a by kenmcd. Fix the file size checks so it works on IRIX too.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -53,7 +53,7 @@ _check_files()
|
||||
if [ -e $file ]
|
||||
then
|
||||
# if file size is not 10MB then sync failed
|
||||
if [ `stat -c %s $file` -eq 10485760 ]
|
||||
if [ `ls -l $file | tr -s ' ' | cut -d ' ' -f 5` -eq 10485760 ]
|
||||
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
|
||||
|
||||
@@ -47,8 +47,8 @@ _check_files()
|
||||
# if file is missing then sync failed
|
||||
if [ -e $file ]
|
||||
then
|
||||
# if file size is not 10MB then sync failed
|
||||
if [ `stat -c %s $file` -eq 32768 ]
|
||||
# if file size is not 32KB then sync 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
|
||||
|
||||
Reference in New Issue
Block a user