More tests for the NULL files problem

Merge of master-melb:xfs-cmds:27632a by kenmcd.

  Fix test number and simplify test case
This commit is contained in:
Lachlan McIlroy
2006-12-05 05:07:45 +00:00
parent 3508b5ae4a
commit 8434010b79
8 changed files with 253 additions and 11 deletions
+1 -11
View File
@@ -1,5 +1,5 @@
#! /bin/sh
# FSQA Test No. 133
# FSQA Test No. 137
#
# Test for NULL files problem
#
@@ -71,16 +71,6 @@ do
elif xfs_bmap $file | grep 'hole' > /dev/null
then
echo corrupt file $file - contains holes
else
for byte in `od -td1 -w16 -v $file | tr -s ' ' | cut -d ' ' -f 2-17`
do
# each byte in the file must not be 0
if [ $byte -eq 0 ]
then
echo corrupt file $file - NULLs found
break;
fi
done
fi
fi
rm -f $file