]> git.proxmox.com Git - mirror_zfs.git/commit - tests/runfiles/linux.run
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)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 30 Apr 2018 17:45:47 +0000 (12:45 -0500)
commitc83ccb3e72934ea1787cf7ddb0a9960eded82d0e
tree0d42b537b48de2d4ab25a6d21702e5ad57048c95
parent964c2d69a90c503f44946f31c5d4a8ac4458176d
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]