Re: How to enable CONFIG_EXT4_ENCRYPTION

Dai Xiang
2017-08-07T09:51:28Z

On Mon, Aug 07, 2017 at 11:25:02AM +0800, Dai Xiang wrote:
> Hi!
>
> I use xfstests with ext4 fs to test, and i found a skip:
>
> ext4/024 [not run] kernel does not support ext4 encryption

i print the cmd:
/usr/sbin/xfs_io -i -c set_encpolicy /fs/scratch/tmpdir
/fs/scratch/tmpdir: failed to set encryption policy: Inappropriate
ioctl for device <===

Seems do not related to kconfig?

/dev/vdd on /fs/scratch type ext4 (rw,relatime,data=ordered)
df -T /dev/vdd
Filesystem Type Size Used Avail Use% Mounted on
/dev/vdd ext4 251G 86G 154G 36% /fs/scratch
>
> I have rebuild config with CONFIG_FS_ENCRYPTION and CONFIG_EXT4_ENCRYPTION.
> I try to set them both y and both m, but two ways both do not set and do not find related failure log.
> I use v4.13-rc3 kernel to build.
>
> Do i miss some dependence kconfig?
>
> Thanks
> Xiang