]> xenbits.xensource.com Git - libvirt.git/commit
Refactor mounting of special filesystems
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Jul 2011 12:02:05 +0000 (13:02 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Jul 2011 14:31:11 +0000 (15:31 +0100)
commit6d37888e6a35a37e6faf7c0a1b1b4d9a5dee1285
treeaead33f49f0f75596216cc65146bd1017defe4c4
parent66a00e61a49de93bd62b6eb01be40d76e84db95d
Refactor mounting of special filesystems

Even in non-virtual root filesystem mode we should be mounting
more than just a new /proc. Refactor lxcContainerMountBasicFS
so that it does everything except for /dev and /dev/pts moving
that into lxcContainerMountDevFS. Pass in a source prefix
to lxcContainerMountBasicFS() so it can be used in both shared
root and private root modes.

* src/lxc/lxc_container.c: Unify mounting code for special
  filesystems
src/lxc/lxc_container.c