You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like if a directory is has bind mounted children, they are silently ignored when the directory is used as a lowerdir in an overlayfs mount
Here's a minimal example:
mkdir a b b/z c d workdir
touch a/1 b/2 c/3
mount -o bind a b/z
mount -t overlay overlay -o lowerdir=b,upperdir=c,workdir=workdir d
ls d # returns "2 3 z" as expected
ls d/z # empty instead of "1" as expected. It isn't reading from "a"
The text was updated successfully, but these errors were encountered:
Lindenk
changed the title
Overlayfs mounts silently ignore bind mounts from the lowerdir
Overlayfs mounts silently ignores bind mounts from the lowerdirApr 23, 2025
Lindenk
changed the title
Overlayfs mounts silently ignores bind mounts from the lowerdir
Overlayfs mounts silently ignore bind mounts from the lowerdirApr 23, 2025
I have doubts that this is a mount(8) issue; you need to discuss it with Linux kernel developers. mount(8) just sends the options to the kernel and does not interpret them.
It looks like if a directory is has bind mounted children, they are silently ignored when the directory is used as a lowerdir in an overlayfs mount
Here's a minimal example:
The text was updated successfully, but these errors were encountered: