mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
9520450542
This patch introduces a new testcase to test some small truncations to check inline_data and its cached data are truncated correctly at the same time. The inline_data feature was introduced in ext4 and f2fs as follows. ext4 : http://lwn.net/Articles/468678/ f2fs : http://lwn.net/Articles/573408/ The basic idea is embedding small-sized file's data into relatively large inode space. In ext4, up to 132 bytes of data can be stored in 256 bytes-sized inode. In f2fs, up to 3.4KB of data can be embedded into 4KB-sized inode block. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
46 lines
1.8 KiB
Plaintext
46 lines
1.8 KiB
Plaintext
QA output created by 393
|
|
wrote 40/40 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
= truncate inline_data after #0 page was truncated entirely =
|
|
000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >................<
|
|
*
|
|
000030 00 00 >..<
|
|
000032
|
|
000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >................<
|
|
*
|
|
000030 00 00 >..<
|
|
000032
|
|
wrote 40/40 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
= truncate dismissed inline_data after #0 page was truncated entirely =
|
|
000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >................<
|
|
*
|
|
001000
|
|
000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >................<
|
|
*
|
|
001000
|
|
wrote 40/40 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
= truncate inline_data after #0 page was truncated partially =
|
|
000000 58 58 58 58 00 00 00 00 00 00 00 00 00 00 00 00 >XXXX............<
|
|
000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >................<
|
|
*
|
|
000030 00 00 >..<
|
|
000032
|
|
000000 58 58 58 58 00 00 00 00 00 00 00 00 00 00 00 00 >XXXX............<
|
|
000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >................<
|
|
*
|
|
000030 00 00 >..<
|
|
000032
|
|
wrote 40/40 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
= truncate dismissed inline_data after #0 page was truncated partially =
|
|
000000 58 58 58 58 00 00 00 00 00 00 00 00 00 00 00 00 >XXXX............<
|
|
000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >................<
|
|
*
|
|
001000
|
|
000000 58 58 58 58 00 00 00 00 00 00 00 00 00 00 00 00 >XXXX............<
|
|
000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >................<
|
|
*
|
|
001000
|