Messages in this thread Patch in this message | | | From | Mark Harmstone <> | Subject | [RFC PATCH 18/19] btrfs: return encrypted flag to statx | Date | Wed, 9 Jan 2019 01:27:00 +0000 |
| |
Signed-off-by: Mark Harmstone <mark@harmstone.com> --- fs/btrfs/inode.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 8f58f492abc8..beaeeafe467a 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -9637,11 +9637,14 @@ static int btrfs_getattr(const struct path *path, struct kstat *stat, stat->attributes |= STATX_ATTR_IMMUTABLE; if (bi_flags & BTRFS_INODE_NODUMP) stat->attributes |= STATX_ATTR_NODUMP; + if (bi_flags & BTRFS_INODE_ENCRYPT) + stat->attributes |= STATX_ATTR_ENCRYPTED; stat->attributes_mask |= (STATX_ATTR_APPEND | STATX_ATTR_COMPRESSED | STATX_ATTR_IMMUTABLE | - STATX_ATTR_NODUMP); + STATX_ATTR_NODUMP | + STATX_ATTR_ENCRYPTED); generic_fillattr(inode, stat); stat->dev = BTRFS_I(inode)->root->anon_dev; -- 2.19.2
| |