ceph: report STATX_ATTR_ENCRYPTED on encrypted inodes
PATCH 1/1 ceph: report STATX_ATTR_ENCRYPTED on encrypted inodes
Signed-off-by Jeff Layton <[email protected]>
--- fs/ceph/inode.c | 4 ++++ 1 file changed, 4 insertions(+)
...another minor patch for the fscrypt pile.
fs/ceph/inode.c +4 -0
@@ -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; }
Signature · 1 line
2.35.1
Quoted 12 lines · Jeff Layton
Signed-off-by Jeff Layton <[email protected]>--- fs/ceph/inode.c | 4 ++++ 1 file changed, 4 insertions(+)...another minor patch for the fscrypt pile.
fs/ceph/inode.c +0
-0
fs/ceph/inode.c int ceph_getattr(struct user_namespace *mnt_userns, const struct path *path, · line 2988
Quoted 10 lines
fs/ceph/inode.c +4
-0@@ -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 <[email protected]>