grub-fs-tester: improve squash4 tests
1. Make sure files are not multiple of block size. This will ensure tail packing for squash4 and may also trigger more codes paths in other filesystems. 2. Call mksquashfs with -always-use-fragments to force tail packing.
This commit is contained in:
parent
892dfbe113
commit
f34ed1f53c
1 changed files with 5 additions and 2 deletions
|
@ -913,6 +913,9 @@ for ((LOGSECSIZE=MINLOGSECSIZE;LOGSECSIZE<=MAXLOGSECSIZE;LOGSECSIZE=LOGSECSIZE +
|
||||||
*)
|
*)
|
||||||
BLOCKCNT=5242880;;
|
BLOCKCNT=5242880;;
|
||||||
esac
|
esac
|
||||||
|
# Make sure file is not exact multiple of block size. This helps to force
|
||||||
|
# tail packing in case of squash4.
|
||||||
|
: $((BLOCKCNT--))
|
||||||
case x"$fs" in
|
case x"$fs" in
|
||||||
x"ntfscomp")
|
x"ntfscomp")
|
||||||
setfattr -h -v 0x00000800 -n system.ntfs_attrib_be "$MNTPOINTRW/$OSDIR";;
|
setfattr -h -v 0x00000800 -n system.ntfs_attrib_be "$MNTPOINTRW/$OSDIR";;
|
||||||
|
@ -998,8 +1001,8 @@ for ((LOGSECSIZE=MINLOGSECSIZE;LOGSECSIZE<=MAXLOGSECSIZE;LOGSECSIZE=LOGSECSIZE +
|
||||||
x"romfs")
|
x"romfs")
|
||||||
genromfs -V "$FSLABEL" -f "${FSIMAGES[0]}" -d "$MASTER" ;;
|
genromfs -V "$FSLABEL" -f "${FSIMAGES[0]}" -d "$MASTER" ;;
|
||||||
xsquash4_*)
|
xsquash4_*)
|
||||||
echo mksquashfs "$MASTER" "${FSIMAGES[0]}" -comp "${fs/squash4_/}" -b $BLKSIZE
|
echo mksquashfs "$MASTER" "${FSIMAGES[0]}" -always-use-fragments -comp "${fs/squash4_/}" -b $BLKSIZE
|
||||||
mksquashfs "$MASTER" "${FSIMAGES[0]}" -comp "${fs/squash4_/}" -b $BLKSIZE ;;
|
mksquashfs "$MASTER" "${FSIMAGES[0]}" -always-use-fragments -comp "${fs/squash4_/}" -b $BLKSIZE ;;
|
||||||
x"bfs")
|
x"bfs")
|
||||||
sleep 1
|
sleep 1
|
||||||
fusermount -u "$MNTPOINTRW"
|
fusermount -u "$MNTPOINTRW"
|
||||||
|
|
Loading…
Reference in a new issue