Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hope support overlayfs upper layer on juicefs #2365

Closed
davies opened this issue Jul 14, 2022 Discussed in #2114 · 1 comment
Closed

Hope support overlayfs upper layer on juicefs #2365

davies opened this issue Jul 14, 2022 Discussed in #2114 · 1 comment
Labels
kind/feature New feature or request

Comments

@davies
Copy link
Contributor

davies commented Jul 14, 2022

Discussed in #2114

Originally posted by wuyongzhi May 10, 2022

when i create overlay fs with juicefs as upper layer, i can not create overlay fs, it got a error:

the command:

# mount -t overlay o1 -o lowerdir=jfs/exercises/001,upperdir=jfs/user/001,workdir=workspaces/001/work workspaces/001/merged

output:

mount: /opt/workspaces/001/merged: wrong fs type, bad option, bad superblock on o1, missing codepage or helper program, or other error

What would you like to be added:
create overlay fs with juicefs as upper layer,

Why is this needed:

@davies davies added the kind/feature New feature or request label Jul 14, 2022
@SandyXSD
Copy link
Contributor

Generally FUSE and network filesystems are not allowed as upper layer for overlayfs, see: https://github.com/torvalds/linux/blob/v5.4/fs/overlayfs/super.c#L754-L759 and: https://github.com/torvalds/linux/blob/v5.4/fs/overlayfs/util.c#L105.
FUSE dentry has DCACHE_OP_REVALIDATE flag set as it implements d_revalidate:
https://github.com/torvalds/linux/blob/v5.4/fs/fuse/dir.c#L301

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants