[Lxc-users] Hard links, code map sharing
Serge E. Hallyn
serge.hallyn at canonical.com
Mon Feb 21 02:02:25 UTC 2011
Quoting Daniel Farina (drfarina at acm.org):
> Hello list,
>
> I've been scouring The Internet on and off for this, but have not come
> to a conclusion:
>
> Does a linux host running LXC share code maps between containers? e.g.
> redundant read-only maps to the same .so or /bin/foo, as defined by an
> equivalent hardlink?
Yes, if you do bind-mount read-only /lib onto /var/lib/lxc/vm1/rootfs/lib,
which is what (IIUC) you are describing, then a lookup on
/var/lib/lxc/vm1/rootfs/lib will point you to /lib.
-serge
More information about the lxc-users
mailing list