[PATCH 1/2] erofs: support query erofs ondemand feature by sysfs interface
Gao Xiang
hsiangkao at linux.alibaba.com
Fri Jun 21 19:16:54 AEST 2024
On 2024/6/21 14:18, Hongbo Li wrote:
> Erofs over fscache depands on the config CONFIG_EROFS_FS_ONDEMAND
> in erofs. There is no way to check whether this feature is supported
> or not in userspace. We introduce sysfs file `erofs_ondemand` for
> user checking current features. Here is the example:
>
> [Before]
> $ cat /sys/fs/erofs/features/erofs_ondemand
> cat: /sys/fs/erofs/features/erofs_ondemand: No such file or directory
>
> [After]
> $ cat /sys/fs/erofs/features/erofs_ondemand
> supported
>
> Signed-off-by: Hongbo Li <lihongbo22 at huawei.com>
Similar here, I guess you could pass in any `fsid` mount
option and check the return value instead.
Thanks,
Gao Xiang
More information about the Linux-erofs
mailing list