On 3/17/22 1:36 PM, Gao Xiang wrote: > On Wed, Mar 16, 2022 at 09:17:11PM +0800, Jeffle Xu wrote: >> Until then erofs is exactly blockdev based filesystem. In other using >> scenarios (e.g. container image), erofs needs to run upon files. >> >> This patch set is going to introduces a new nodev mode, in which erofs >> could be mounted from a bootstrap blob file containing complete erofs >> image. >> >> Add a helper checking which mode erofs works in. >> >> Signed-off-by: Jeffle Xu <[email protected]> >> --- >> fs/erofs/internal.h | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h >> index e424293f47a2..f66af9ebda43 100644 >> --- a/fs/erofs/internal.h >> +++ b/fs/erofs/internal.h >> @@ -161,6 +161,11 @@ struct erofs_sb_info { >> #define set_opt(opt, option) ((opt)->mount_opt |= >> EROFS_MOUNT_##option) >> #define test_opt(opt, option) ((opt)->mount_opt & >> EROFS_MOUNT_##option) >> >> +static inline bool erofs_bdev_mode(struct super_block *sb) > > How about renaming it as erofs_is_nodev_mode()? Sure, will be renamed in the next version. -- Thanks, Jeffle
- [PATCH v5 11/22] erofs: register global fscache volume Jeffle Xu
- Re: [PATCH v5 11/22] erofs: register global fscache... kernel test robot
- Re: [PATCH v5 11/22] erofs: register global fscache... kernel test robot
- [PATCH v5 12/22] erofs: add cookie context helper functi... Jeffle Xu
- [PATCH v5 08/22] erofs: use meta buffers for erofs_read_... Jeffle Xu
- [PATCH v5 15/22] erofs: register cookie context for boot... Jeffle Xu
- [PATCH v5 16/22] erofs: implement fscache-based metadata... Jeffle Xu
- [PATCH v5 13/22] erofs: add anonymous inode managing pag... Jeffle Xu
- [PATCH v5 10/22] erofs: add mode checking helper Jeffle Xu
- Re: [Linux-cachefs] [PATCH v5 10/22] erofs: add mod... Gao Xiang
- Re: [Linux-cachefs] [PATCH v5 10/22] erofs: add... JeffleXu
- [PATCH v5 14/22] erofs: add erofs_fscache_read_pages() h... Jeffle Xu
- [PATCH v5 17/22] erofs: implement fscache-based data rea... Jeffle Xu
- [PATCH v5 19/22] erofs: register cookie context for data... Jeffle Xu
- [PATCH v5 18/22] erofs: implement fscache-based data rea... Jeffle Xu
- [PATCH v5 20/22] erofs: implement fscache-based data rea... Jeffle Xu
- [PATCH v5 21/22] erofs: implement fscache-based data rea... Jeffle Xu
