> Here is a scenario with shared subtree. Sorry it is complex. > > > mount --bind /mnt /mnt > mount --make-shared /mnt > mkdir -p /mnt/p > mount --bind /usr /mnt/1 > mount --bind /mnt /mnt/2 > > At this stage the mount at /mnt/2 and /mnt belong to the same pnode > which means mounts under them propogate to each other. > > mount --bind /var /mnt/1 > > the contents of /var will be visible under /mnt/1 and not under /mnt/2 > But if mount --bind /var /mnt/2 is executed, the contents of /var is > visible under /mnt/1 as well as /mnt/2 . Isn't this freaky?
I don't understand. 'mount --bind /var /mnt/1' should propagate to /mnt/2/1, not /mnt/2. No? 'mount --bind /var/ /mnt/2' should propagate to /mnt. What am I missing? Miklos - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html