projects
/
xfstests-dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generic/042: set size to 38M for f2fs
[xfstests-dev.git]
/
tests
/
generic
/
042
diff --git
a/tests/generic/042
b/tests/generic/042
index 35727bcbc692b0170b58e188b350cdbf6c37c1a7..ee0e4b400c71a3affaf74b565e2476db1542ac87 100755
(executable)
--- a/
tests/generic/042
+++ b/
tests/generic/042
@@
-41,10
+41,16
@@
_crashtest()
img=$SCRATCH_MNT/$seq.img
mnt=$SCRATCH_MNT/$seq.mnt
file=$mnt/file
img=$SCRATCH_MNT/$seq.img
mnt=$SCRATCH_MNT/$seq.mnt
file=$mnt/file
+ size=25M
+
+ # 25M is too small for f2fs.
+ if [ $FSTYP == "f2fs" ]; then
+ size=38M
+ fi
# Create an fs on a small, initialized image. The pattern is written to
# the image to detect stale data exposure.
# Create an fs on a small, initialized image. The pattern is written to
# the image to detect stale data exposure.
- $XFS_IO_PROG -f -c "truncate 0" -c "pwrite -S 0xCD 0
25M
" $img \
+ $XFS_IO_PROG -f -c "truncate 0" -c "pwrite -S 0xCD 0
$size
" $img \
>> $seqres.full 2>&1
_mkfs_dev $img >> $seqres.full 2>&1
>> $seqres.full 2>&1
_mkfs_dev $img >> $seqres.full 2>&1