Files
apfstests/tests/generic/517.out
T
Filipe Manana 0d39941c04 generic/517: make test work on filesystems with block size greater than 4Kb
The test currently fails on filesystems with a block size greater
than 4Kb, as dedupe operations fail with -EINVAL because the file
offsets used are not multiples of such block sizes (but they are
multiples of 4Kb, 2Kb and 1Kb).

So update the test to use offsets that are multiples of 64Kb, since
that allows the test to work on filesystems with any block size
between 4Kb and 64Kb (8Kb, 16Kb, 32Kb). Verified it works as
expected on kernels that have the fixes for the issue tested by this
test case (listed in the changelog of commit
91540ef980), and on systems without
those fixes (a 4.18 kernel), it fails as it is supposed to.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
2019-08-18 22:39:01 +08:00

46 lines
1.6 KiB
Plaintext

QA output created by 517
wrote 524388/524388 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
wrote 262144/262144 bytes at offset 524388
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
wrote 131172/131172 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
File content before first deduplication:
0000000 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b
*
0524384 6b 6b 6b 6b ae ae ae ae ae ae ae ae ae ae ae ae
0524400 ae ae ae ae ae ae ae ae ae ae ae ae ae ae ae ae
*
0786528 ae ae ae ae
0786532
deduped 131172/131172 bytes at offset 65536
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
File content after first deduplication and before unmounting:
0000000 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b
*
0524384 6b 6b 6b 6b ae ae ae ae ae ae ae ae ae ae ae ae
0524400 ae ae ae ae ae ae ae ae ae ae ae ae ae ae ae ae
*
0786528 ae ae ae ae
0786532
File content after first unmount:
0000000 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b
*
0524384 6b 6b 6b 6b ae ae ae ae ae ae ae ae ae ae ae ae
0524400 ae ae ae ae ae ae ae ae ae ae ae ae ae ae ae ae
*
0786528 ae ae ae ae
0786532
wrote 100/100 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
deduped 100/100 bytes at offset 655360
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
File content after second deduplication:
0000000 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b
*
0524384 6b 6b 6b 6b ae ae ae ae ae ae ae ae ae ae ae ae
0524400 ae ae ae ae ae ae ae ae ae ae ae ae ae ae ae ae
*
0786528 ae ae ae ae
0786532