forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
anolis: fuse: add a mount option to set fs magic value
ANBZ: torvalds#377 Add a mount option to allow backend daemon set fs magic value. Applications identify file system type by fsmgic listed in 'linux/magic.h'. All FUSE-Based filesystems return the value 'FUSE_SUPER_MAGIC' regardless of huge difference between them. By the time this patch is applied, a mechanism is provided that front-end applications could distinguish different FUSE-Based user-space filesystems by traditional statfs(2) and make use of their respective advantages. One practical scenario is Alibaba Cloud's Database file System(DBFS) which is FUSE-based and supports multiple types of storage engines. Transfer unique fs magic for each engine to front-end enables applications to select appropriate instance for different model. For example, MyFS engine with magic number 'alibaba::dbfs::MYFS_SUPER_MAGIC' is suitable for oltp while LFS engine with 'alibaba::dbfs::LFS_SUPER_MAGIC' benefit olap. FUSE-Based filesystem uses this option should deal with conflicts with values defined in 'linux/magic.h' and other FUSE-Based filesystems. Signed-off-by: sanyulh <[email protected]> Reviewed-by: Joseph Qi <[email protected]> Reviewed-by: Gao Xiang <[email protected]> Reviewed-by: Jeffle Xu <[email protected]>
- Loading branch information
Showing
2 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters