Enable features required for composefs
For composefs we need to enable erofs (without compression) and fs-verity support in the kernel.
I tested the erofs part of like using the erofs tests:
git clone https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git
cd erofs-utils
git checkout experimental-tests
autoreconf -im
./configure --disable-lz4
make
make check
As well as the eroffsstress tool:
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.100.tar.gz
tar xvf linux-5.10.100.tar.gz
./mkfs/mkfs.erofs linux-5.10.100.erofs linux-5.10.100/
mkdir mnt
mount -o loop -t erofs linux-5.10.100.erofs mnt/
ls -lR > /dev/null
git clone https://github.com/erofs/erofsstress
gcc -o stress erofsstress/stress.c
./stress -l40 -p8 mnt/
The fs-verity part was tested using xfstest (./check -g verity) on ext4 filesystems created with the -O verity
option.
JIRA: https://issues.redhat.com/browse/RHEL-15219
Signed-off-by: Alexander Larsson alexl@redhat.com
Edited by Alexander Larsson