Skip to contentSkip to conversation

Overlayfs: problem with mountpoints inside

DISCUSSION Nazarov Sergey 1 participant 1 message Apr 23, 2014 VFS

lore
Share & tools
lore
#0 lore raw

Hi,
The problem is: if I mount overlayfs over some directories tree with mountpoints inside, I lose the contents of theese mountpoints.
For example, if we have:
mnt/
dir1/
dir2/
file1
dir3/
after:
mount something to dir1/dir2
mount -t overlayfs -o lowerdir=dir1,upperdir=dir3 none mnt
we'll see file1 in mnt/dir2.