Linux Documentation
 help / color / mirror / Atom feed
From: Xiubo Li <xiubli@redhat.com>
To: Artem Ikonnikov <artem@datacrunch.io>, linux-doc@vger.kernel.org
Cc: Ilya Dryomov <idryomov@gmail.com>,
	Jonathan Corbet <corbet@lwn.net>,
	ceph-devel@vger.kernel.org
Subject: Re: [PATCH] doc: ceph: update userspace command to get CephFS metadata
Date: Tue, 21 May 2024 08:32:43 +0800	[thread overview]
Message-ID: <5561ff7d-16b3-40e1-b9c4-7327a0dabc05@redhat.com> (raw)
In-Reply-To: <ZkkgZlRk+PbFBUOJ@kurwa>


On 5/19/24 05:40, Artem Ikonnikov wrote:
> According to ceph documentation "getfattr -d /some/dir" no longer displays
> the list of all extended attributes. Both CephFS kernel and FUSE clients
> hide this information.
>
> To retrieve the information you have to specify the particular attribute
> name e.g. "getfattr -n ceph.dir.rbytes /some/dir"
>
> Link: https://docs.ceph.com/en/latest/cephfs/quota/
> Signed-off-by: Artem Ikonnikov <artem@datacrunch.io>
> ---
>   Documentation/filesystems/ceph.rst | 15 +++++++++------
>   1 file changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/filesystems/ceph.rst b/Documentation/filesystems/ceph.rst
> index 085f309ece60..6d2276a87a5a 100644
> --- a/Documentation/filesystems/ceph.rst
> +++ b/Documentation/filesystems/ceph.rst
> @@ -67,12 +67,15 @@ Snapshot names have two limitations:
>     more than 255 characters, and `<node-id>` takes 13 characters, the long
>     snapshot names can take as much as 255 - 1 - 1 - 13 = 240.
>   
> -Ceph also provides some recursive accounting on directories for nested
> -files and bytes.  That is, a 'getfattr -d foo' on any directory in the
> -system will reveal the total number of nested regular files and
> -subdirectories, and a summation of all nested file sizes.  This makes
> -the identification of large disk space consumers relatively quick, as
> -no 'du' or similar recursive scan of the file system is required.
> +Ceph also provides some recursive accounting on directories for nested files
> +and bytes.  You can run the commands::
> +
> + getfattr -n ceph.dir.rfiles /some/dir
> + getfattr -n ceph.dir.rbytes /some/dir
> +
> +to get the total number of nested files and their combined size, respectively.
> +This makes the identification of large disk space consumers relatively quick,
> +as no 'du' or similar recursive scan of the file system is required.
>   
>   Finally, Ceph also allows quotas to be set on any directory in the system.
>   The quota can restrict the number of bytes or the number of files stored

LGTM.

Reviewed-by: Xiubo Li <xiubli@redhat.com>


      reply	other threads:[~2024-05-21  0:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-18 21:40 [PATCH] doc: ceph: update userspace command to get CephFS metadata Artem Ikonnikov
2024-05-21  0:32 ` Xiubo Li [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5561ff7d-16b3-40e1-b9c4-7327a0dabc05@redhat.com \
    --to=xiubli@redhat.com \
    --cc=artem@datacrunch.io \
    --cc=ceph-devel@vger.kernel.org \
    --cc=corbet@lwn.net \
    --cc=idryomov@gmail.com \
    --cc=linux-doc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox