mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
c5223b9294
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>
51 lines
2.1 KiB
Plaintext
51 lines
2.1 KiB
Plaintext
QA output created by 096
|
|
|
|
# su too big but must be a multiple of fs block size too
|
|
--- mkfs=-l version=2,su=262656 ---
|
|
log stripe unit (262656) must be a multiple of the block size (4096)
|
|
|
|
|
|
# test log stripe greater than LR size
|
|
--- mkfs=-l version=2,su=266240 ---
|
|
meta-data=DEV isize=N agcount=N, agsize=N blks
|
|
data = bsize=4096 blocks=N, imaxpct=N
|
|
= sunit=0 swidth=0 blks, unwritten=1
|
|
naming =version 2 bsize=4096
|
|
log =LOG bsize=4096 blocks=N, version=N
|
|
realtime =REALTIME extsz=N, blocks=N, rtextents=N
|
|
|
|
|
|
# same test but get log stripe from data stripe
|
|
--- mkfs=-l version=2 -d su=266240,sw=1 ---
|
|
meta-data=DEV isize=N agcount=N, agsize=N blks
|
|
data = bsize=4096 blocks=N, imaxpct=N
|
|
= sunit=65 swidth=65 blks, unwritten=1
|
|
naming =version 2 bsize=4096
|
|
log =LOG bsize=4096 blocks=N, version=N
|
|
= sunit=N blks
|
|
realtime =REALTIME extsz=N, blocks=N, rtextents=N
|
|
|
|
|
|
# test out data stripe
|
|
--- mkfs=-m crc=0 -l version=1 -d su=266240,sw=1 ---
|
|
meta-data=DEV isize=N agcount=N, agsize=N blks
|
|
data = bsize=4096 blocks=N, imaxpct=N
|
|
= sunit=65 swidth=65 blks, unwritten=1
|
|
naming =version 2 bsize=4096
|
|
log =LOG bsize=4096 blocks=N, version=N
|
|
= sunit=N blks
|
|
realtime =REALTIME extsz=N, blocks=N, rtextents=N
|
|
|
|
|
|
# test out data stripe the same but using sunit & swidth
|
|
--- mkfs=-m crc=0 -l version=1 -d sunit=520,swidth=520 ---
|
|
meta-data=DEV isize=N agcount=N, agsize=N blks
|
|
data = bsize=4096 blocks=N, imaxpct=N
|
|
= sunit=65 swidth=65 blks, unwritten=1
|
|
naming =version 2 bsize=4096
|
|
log =LOG bsize=4096 blocks=N, version=N
|
|
= sunit=N blks
|
|
realtime =REALTIME extsz=N, blocks=N, rtextents=N
|
|
|
|
|