Merge pull request #65950 from joscollin/wip-71701-near-full

qa: drop creating huge files in test_cephfs_mirror_cancel_sync

Reviewed-by: Venky Shankar <vshankar@redhat.com>
This commit is contained in:
Venky Shankar 2026-06-08 10:05:28 +05:30 committed by GitHub
commit b76b2c3b3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -773,7 +773,7 @@ class TestMirroring(CephFSTestCase):
self.mount_a.run_shell(["mkdir", "d0"])
for i in range(100):
filename = f'file.{i}'
self.mount_a.write_n_mb(os.path.join('d0', filename), 1024)
self.mount_a.write_n_mb(os.path.join('d0', filename), 100)
self.enable_mirroring(self.primary_fs_name, self.primary_fs_id)
self.add_directory(self.primary_fs_name, self.primary_fs_id, '/d0')
@ -1637,6 +1637,7 @@ class TestMirroring(CephFSTestCase):
peer_spec, f'/{dir_name}', snap_b, expected_snap_count)
self.verify_snapshot(dir_name, snap_a)
self.verify_snapshot(dir_name, snap_b)
self.remove_directory(self.primary_fs_name, self.primary_fs_id, f'/{dir_name}')
self.disable_mirroring(self.primary_fs_name, self.primary_fs_id)
def test_cephfs_mirror_multithread_snapshot_starvation(self):