]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: test ENOSPC caused by many orphan items
authorOmar Sandoval <osandov@fb.com>
Thu, 10 May 2018 06:21:55 +0000 (23:21 -0700)
committerEryu Guan <guaneryu@gmail.com>
Wed, 16 May 2018 01:53:15 +0000 (09:53 +0800)
commit5c19a58f7d99567e2e664558f32fbacb11b169d3
treeeb67534139e8cbdb62bd85e768f4c36007400803
parenta82e9464ddfb3ed677e0080301adbab3dab47546
btrfs: test ENOSPC caused by many orphan items

Btrfs has a bug where we can prematurely ENOSPC if we have lots of
orphaned files, i.e., deleted files which are still open. Add a test
which repeatedly creates and deletes a file while keeping all of the
file descriptors open. This should succeed but doesn't on Btrfs
without the fix.

[Eryu: use multi_open_unlink command to keep files open & unlinked
instead of shell scripts]

Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/479 [changed mode: 0644->0755]
tests/generic/488 [new file with mode: 0755]
tests/generic/488.out [new file with mode: 0644]
tests/generic/group