From 718fe447865ac2614666762d615485b982da4cfd Mon Sep 17 00:00:00 2001 From: Ville Ojamo <14869000+bluikko@users.noreply.github.com> Date: Mon, 28 Apr 2025 17:23:44 +0700 Subject: [PATCH] doc/radosgw: Promptify CLI commands in compression.rst Use the bash prompt block for example CLI command. Separate command output from the CLI command. Use the correct privileged bash prompt on an already promptified example command, instead of an unprivileged bash prompt. Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com> --- doc/radosgw/compression.rst | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/doc/radosgw/compression.rst b/doc/radosgw/compression.rst index 429dde91c73dd..288cfef92d995 100644 --- a/doc/radosgw/compression.rst +++ b/doc/radosgw/compression.rst @@ -34,13 +34,17 @@ Compression settings apply to all new objects uploaded to buckets using this placement target. Compression can be disabled by setting the ``type`` to an empty string or ``none``. -For example:: +For example: + +.. prompt:: bash # + + radosgw-admin zone placement modify --rgw-zone default \ + --placement-id default-placement \ + --storage-class STANDARD \ + --compression zlib + +:: - $ radosgw-admin zone placement modify \ - --rgw-zone default \ - --placement-id default-placement \ - --storage-class STANDARD \ - --compression zlib { ... "placement_pools": [ @@ -72,7 +76,7 @@ Statistics Run the ``radosgw-admin bucket stats`` command to see compression statistics for a given bucket: -.. prompt:: bash +.. prompt:: bash # radosgw-admin bucket stats --bucket= -- 2.39.5