]> granicus.if.org Git - zfs/commit
Add test with two kinds of file creation orders
authorAntonio Russo <antonio.e.russo@gmail.com>
Mon, 30 Apr 2018 17:45:47 +0000 (13:45 -0400)
committerTony Hutter <hutter2@llnl.gov>
Tue, 8 May 2018 00:19:57 +0000 (17:19 -0700)
commitc38d702330f15b2f09304eff35dd83abbd5816ec
treee4df0b0a07db14fca49d70ba3edaaa0ab43f4a88
parent3f729907c8cdbf928c0a0c69783641a573fb0208
Add test with two kinds of file creation orders

Data loss was identified in #7401 when many small files were copied.
This adds a reproducer for this bug and other similar ones: randomly
generate N files. Then, listing M of them by `ls -U` order, produce
those same files in a directory of the same name.

This triggers the bug consistently, provided N and M are large enough.
Here, N=2^16 and M=2^13.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes #7411
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/mv_files/Makefile.am
tests/zfs-tests/tests/functional/mv_files/mv_files.cfg
tests/zfs-tests/tests/functional/mv_files/random_creation.ksh [new file with mode: 0755]