ubifs: Add support for FS_ENCRYPT_FL
authorEric Biggers <ebiggers@google.com>
Mon, 9 Dec 2019 22:23:25 +0000 (14:23 -0800)
committerRichard Weinberger <richard@nod.at>
Thu, 16 Jan 2020 22:35:43 +0000 (23:35 +0100)
commit219b0e2cba4ec326f88a08a5c9ad51103089bdab
treed5423a36dfb0dcd39cf9c25f29d5cbf8dd9befb7
parent2b57067a7778484c10892fa191997bfda29fea13
ubifs: Add support for FS_ENCRYPT_FL

Make the FS_IOC_GETFLAGS ioctl on ubifs return the FS_ENCRYPT_FL flag on
encrypted files, like ext4 and f2fs do.

Also make this flag be ignored by FS_IOC_SETFLAGS, like ext4 and f2fs
do, since it's a recognized flag but is not directly settable.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/ioctl.c