]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: fix async allocation race on BTRFS
authorPádraig Brady <P@draigBrady.com>
Thu, 14 May 2015 10:43:54 +0000 (11:43 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 14 May 2015 13:08:02 +0000 (14:08 +0100)
commit7f0f58fdd68e7ca86dd5db7effb2c7f94adc4a08
tree6b50d29fb53c6d45bc9f43330abe6bf6b87f6c81
parent45b8fe430dced8c489cb64491b8716cffeeca8c3
tests: fix async allocation race on BTRFS

* tests/dd/sparse.sh: Sync files before checking allocations,
which may be done asynchronously on NFS and BTRFS at least.
Also mark this test as very expensive on remote file systems.
* tests/du/2g.sh: Likewise, also use fallocate if available
to efficiently allocate the large file, otherwise skip
on remote file systems.
* tests/tail-2/inotify-rotate-resources.sh: Use the more
standard is_local_dir_() to check remoteness.
* tests/cp/fiemap-empty.sh: Comment on the sync issue
for this currerntly unused test.
Fixes http://bugs.gnu.org/20570
tests/cp/fiemap-empty.sh
tests/dd/sparse.sh
tests/du/2g.sh
tests/tail-2/inotify-rotate-resources.sh