]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/radosgw/admin.rst: explain bucket and uid flags for bucket quota 63983/head
authorHyun Jin Kim <hello.hyunjin@gmail.com>
Tue, 17 Jun 2025 13:01:28 +0000 (09:01 -0400)
committerHyun Jin Kim <hello.hyunjin@gmail.com>
Tue, 17 Jun 2025 13:01:28 +0000 (09:01 -0400)
Clarify behavior of bucket and uid flags when setting a quota with
quota-scope=bucket.

Signed-off-by: Hyun Jin Kim <hello.hyunjin@gmail.com>
doc/radosgw/admin.rst

index e580409f80c3f7f8add7a462533cd58e152e2bf5..2740a287a11cd2946b9503aebbeb7b7bae1350ab 100644 (file)
@@ -439,9 +439,6 @@ The Ceph Object Gateway makes it possible for you to set quotas on users and
 buckets owned by users. Quotas include the maximum number of objects in a
 bucket and the maximum storage size a bucket can hold.
 
-- **Bucket:** The ``--bucket`` option allows you to specify a quota for
-  buckets the user owns.
-
 - **Maximum Objects:** The ``--max-objects`` setting allows you to specify
   the maximum number of objects. A negative value disables this setting.
   
@@ -450,14 +447,13 @@ bucket and the maximum storage size a bucket can hold.
   setting.
   
 - **Quota Scope:** The ``--quota-scope`` option sets the scope for the quota.
-  The options are ``bucket`` and ``user``. Bucket quotas apply to each bucket
-  owned by the user. User Quotas are summed across all buckets owned by the
-  user. 
-
+  The options are ``bucket`` and ``user``.
 
 Set User Quota
 --------------
 
+User Quotas are summed across all buckets owned by the user.
+
 Before you enable a quota, you must first set the quota parameters.
 To set quota parameters, run a command of the following form: 
 
@@ -494,13 +490,14 @@ To disable an enabled user quota, run a command of the following form:
 Set Bucket Quota
 ----------------
 
-Bucket quotas apply to the buckets owned by the specified ``uid``. They are
-independent of the user. To set a bucket quota, run a command of the following
-form:
+If the ``--bucket`` option is specified, the bucket quota applies to a single bucket with the specified name.
+Else, if the ``--uid`` option is specified, the bucket quota applies to all buckets owned by the user with the specified UID.
+
+To set a bucket quota, run a command of the following form:
 
 .. prompt:: bash #
 
-   radosgw-admin quota set --uid=<uid> --quota-scope=bucket [--max-objects=<num objects>] [--max-size=<max size]
+   radosgw-admin quota set --quota-scope=bucket {--bucket=<bucket name> | --uid=<uid>} [--max-objects=<num objects>] [--max-size=<max size>]
 
 A negative value for ``--max-objects`` or ``--max-size`` means that the
 specific quota attribute is disabled.