]> git-server-git.apps.pok.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)
committerRamana Raja <rraja@redhat.com>
Tue, 22 Mar 2022 20:15:59 +0000 (16:15 -0400)
commitb018ccf0b79495515e01f7c73b5bbbf82ce780d6
tree57ccac4582f5cd61492aa7435997ee1a5c20f649
parent224f4a5ac4a8d1a524f8bf0b35e2e5acb37d568b
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>
(cherry picked from commit 395d20a2b7cfd081c1f1a172da14d183e3fe9003)
qa/tasks/cephfs/mount.py
qa/tasks/cephfs/test_recovery_fs.py