mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user