All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xiubo Li <xiubli@redhat.com>
To: Jeff Layton <jlayton@kernel.org>, ceph-devel@vger.kernel.org
Cc: lhenriques@suse.de, idryomov@gmail.com
Subject: Re: [PATCH] ceph: report STATX_ATTR_ENCRYPTED on encrypted inodes
Date: Thu, 5 May 2022 08:14:41 +0800	[thread overview]
Message-ID: <e1453800-723a-cc62-a34f-96611e7ead39@redhat.com> (raw)
In-Reply-To: <20220504110536.13418-1-jlayton@kernel.org>


On 5/4/22 7:05 PM, Jeff Layton wrote:
> Signed-off-by: Jeff Layton <jlayton@kernel.org>
> ---
>   fs/ceph/inode.c | 4 ++++
>   1 file changed, 4 insertions(+)
>
> ...another minor patch for the fscrypt pile.
>
> diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
> index ae9afc149da1..f7d56aaea27d 100644
> --- a/fs/ceph/inode.c
> +++ b/fs/ceph/inode.c
> @@ -2979,6 +2979,10 @@ int ceph_getattr(struct user_namespace *mnt_userns, const struct path *path,
>   			stat->nlink = 1 + 1 + ci->i_subdirs;
>   	}
>   
> +	if (IS_ENCRYPTED(inode))
> +		stat->attributes |= STATX_ATTR_ENCRYPTED;
> +	stat->attributes_mask |= STATX_ATTR_ENCRYPTED;
> +
>   	stat->result_mask = request_mask & valid_mask;
>   	return err;
>   }
Reviewed-by: Xiubo Li <xiubli@redhat.com>


      reply	other threads:[~2022-05-05  0:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-04 11:05 [PATCH] ceph: report STATX_ATTR_ENCRYPTED on encrypted inodes Jeff Layton
2022-05-05  0:14 ` 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=e1453800-723a-cc62-a34f-96611e7ead39@redhat.com \
    --to=xiubli@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=idryomov@gmail.com \
    --cc=jlayton@kernel.org \
    --cc=lhenriques@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.