[libvirt] This patch creates a mount point for libvirt-lxc containers to mount on the destination system if it does not exist.

Daniel J Walsh dwalsh at redhat.com
Fri Jun 22 13:59:58 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Currently libvirt-lxc checks to see if the destination exists and is a
directory.  If it is not a directory then the mount fails.  Since libvirt-lxc
can bind mount files on an inode, this patch is needed to allow us to bind
mount files on files.  Currently we want to bind mount on top of
/etc/machine-id, and /etc/adjtime

If the destination of the mount point does not exists, it checks if the src is
a directory and then attempts to create a directory, otherwise it creates an
empty file for the destination.  The code will then bind mount over the
destination.

Current code blows up if the destination was not a directory.  We want to be
able to bind mount files on files.

Sorry if you are seeing this patch for the second time, since I sent it to the
wrong list.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/kel4ACgkQrlYvE4MpobP7uwCfXUPMJP4bNZiBGTwnJ70dezVf
KPwAnjt3MYSlHxkcwZCe5H1X4C0P4ky/
=1te/
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virt-lxc-bindmountdest.patch
Type: text/x-patch
Size: 1691 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120622/0a33e780/attachment-0001.bin>


More information about the libvir-list mailing list