]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: make rgw-restore-bucket-index more robust
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 1 Mar 2024 23:54:12 +0000 (18:54 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 7 Mar 2024 02:31:19 +0000 (21:31 -0500)
commitff5f248a1f4a880cf16d0ee014bb219d1c21a83c
treedd40f1425a9ca044d0267079d544657337ff3631
parent7f109dcae4386e77893898bde893df95c3fdb35d
rgw: make rgw-restore-bucket-index more robust

This experimental tool write a series of temporary files, the combined
size of which is roughly proportional to some combination of the
number of objects in the bucket and their respective sizes. Previously
the script stored all temporary files in /tmp, which may not be
sufficiently large in many cases.

There are now two enhancements. First, using the "-t" command-line
argument, the directory for temporary files can be specified. Second,
if the script consumes all available space on the file system
containing the temporary directory, an error message to that effect is
displayed, so the user understands what corrective action to take.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit a8cf37b6e8e33c53d9be4cc1998d3b2f80700fbd)
doc/man/8/rgw-restore-bucket-index.rst
src/rgw/rgw-restore-bucket-index