[PATCH 0/2] support query ondemand feature for erofs and cachefiles

Hongbo Li lihongbo22 at huawei.com
Fri Jun 21 16:18:06 AEST 2024


Hi all!

These two patches is used to support query ondemand feature
for erofs and cachefiles modules. Since erofs over fscache
introduces CONFIG_EROFS_FS_ONDEMAND and CONFIG_CACHEFILES_ONDEMAND,
we cannot know whether the kernel supports this feature or not
in userspace. So we introduce the sysfs interface for users'
applications to obtain this.

Comments and questions are, as always, welcome.
Please let me know what you think.

Thanks,
Hongbo

Hongbo Li (2):
  erofs: support query erofs ondemand feature by sysfs interface
  cachefiles: support query cachefiles ondemand feature

 fs/cachefiles/Makefile   |   3 +-
 fs/cachefiles/internal.h |   7 +++
 fs/cachefiles/main.c     |   7 +++
 fs/cachefiles/sysfs.c    | 101 +++++++++++++++++++++++++++++++++++++++
 fs/erofs/sysfs.c         |   6 +++
 5 files changed, 123 insertions(+), 1 deletion(-)
 create mode 100644 fs/cachefiles/sysfs.c

-- 
2.34.1



More information about the Linux-erofs mailing list