mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
filter: inode size output of mkfs.xfs can change
With the change to CRCs by default, the mkfs inode size is defaults to 512 bytes and the minimum block size changes to 1024 bytes. This causes mismatches with golden output that expects the inode size to be 256 bytes, and some tests are tailored around the amount of space inside a 256 byte inode. Fix them with appropriate filtering or mkfs parameters to allow 256 byte inodes to be used. Signed-off-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
da8f501cb3
commit
c5223b9294
+6
-4
@@ -75,19 +75,21 @@ dd if=/dev/zero of=$tmpfile bs=1 seek=19998630180864 count=1 >/dev/null 2>&1 \
|
||||
|
||||
mkfs_filter()
|
||||
{
|
||||
sed -e "s,^meta-data=.*isize,meta-data=FILE isize,g" \
|
||||
sed -e 's/meta-data=[^ ]*/meta-data=FILE/' \
|
||||
-e 's/ *isize=[0-9]* / isize=N /' \
|
||||
-e "s/\(^log.*blocks=\)\([0-9]*,\)/\1XXXXX,/" \
|
||||
-e "s/, projid32bit=[0-9]//" \
|
||||
-e "s/ ftype=[0-9]//" \
|
||||
-e "s/\(sectsz\)\(=[0-9]* *\)/\1=512 /" \
|
||||
-e "s/\(sunit=\)\([0-9]* blks,\)/\10 blks,/" \
|
||||
-e "s/, lazy-count=[0-9]//" \
|
||||
-e "/.*crc=/d"
|
||||
}
|
||||
|
||||
# mkfs slightly smaller than that
|
||||
# mkfs slightly smaller than that, small log for speed.
|
||||
echo "=== mkfs.xfs ==="
|
||||
mkfs.xfs -f -bsize=4096 -dagsize=76288719b,size=3905982455b \
|
||||
-llazy-count=0 $tmpfile | mkfs_filter
|
||||
mkfs.xfs -f -bsize=4096 -l size=32m -dagsize=76288719b,size=3905982455b \
|
||||
$tmpfile | mkfs_filter
|
||||
|
||||
mount -o loop $tmpfile $tmpdir || _fail "!!! failed to loopback mount"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user