]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa: refactor and generalize create_n_files
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 14 Sep 2021 17:45:33 +0000 (13:45 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 7 Oct 2021 19:08:34 +0000 (15:08 -0400)
commit395d20a2b7cfd081c1f1a172da14d183e3fe9003
treef3270372e1e757408a86bbdf22c9e3a8be08187b
parenta5675535ba532cfe782238d995751f9bc91f5078
qa: refactor and generalize create_n_files

Few things:

- Allow calling fsync on directory (to support async create kernel).
- Allow immediately unlinking the created file (for stray testing).
- Close any file descriptors created.
- Write unique content (the i variable) to each file.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/cephfs/mount.py
qa/tasks/cephfs/test_recovery_fs.py