Re: [libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-19 Thread Daniel P. Berrange
On Fri, Mar 13, 2009 at 12:06:12PM +0100, Florian Vichot wrote: Hi everyone, Here is the new patch, with the requested modifications: - The target tag is now set to '/', and not used to specify the pivot root location. - Search and replace uses virBuffer and strstr() - Use of virAsprintf

Re: [libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-18 Thread Anton Protopopov
2009/3/12 Daniel P. Berrange berra...@redhat.com On Wed, Mar 11, 2009 at 05:42:20PM +0100, Florian Vichot wrote: Hi everyone, This patch is to allow using the mount type in the filesystem tag for OpenVZ domains. Example: ... filesystem type='mount' source

Re: [libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-17 Thread Florian Vichot
Florian Vichot a écrit : Hi everyone, Here is the new patch, with the requested modifications: - The target tag is now set to '/', and not used to specify the pivot root location. - Search and replace uses virBuffer and strstr() - Use of virAsprintf when possible, instead of stack arrays. -

Re: [libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-13 Thread Evgeniy Sokolov
Hi Evgeniy, really, default config is specified in /etc/sysconfig/vz # grep -R CONFIGFILE /etc/sysconfig/vz CONFIGFILE=vps.basic config file is calculating by snprintf(path, sizeof(path), VPS_CONF_DIR ve-%s.conf-sample, config); Actually, vz.conf is in /etc/vz/ on my machine

Re: [libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-13 Thread Florian Vichot
Hi everyone, Here is the new patch, with the requested modifications: - The target tag is now set to '/', and not used to specify the pivot root location. - Search and replace uses virBuffer and strstr() - Use of virAsprintf when possible, instead of stack arrays. - Default config file name is

Re: [libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-12 Thread Daniel P. Berrange
On Wed, Mar 11, 2009 at 05:42:20PM +0100, Florian Vichot wrote: Hi everyone, This patch is to allow using the mount type in the filesystem tag for OpenVZ domains. Example: ... filesystem type='mount' source dir='/path/to/filesystem/directory/' / target

Re: [libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-12 Thread Evgeniy Sokolov
Hi Florian, Hi everyone, This patch is to allow using the mount type in the filesystem tag for OpenVZ domains. Example: ... filesystem type='mount' source dir='/path/to/filesystem/directory/' / target dir='/path/to/pivot/root/' / /filesystem ... This is my first patch

Re: [libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-12 Thread Florian Vichot
Hi Evgeniy, really, default config is specified in /etc/sysconfig/vz # grep -R CONFIGFILE /etc/sysconfig/vz CONFIGFILE=vps.basic config file is calculating by snprintf(path, sizeof(path), VPS_CONF_DIR ve-%s.conf-sample, config); Actually, vz.conf is in /etc/vz/ on my machine (Ubuntu

[libvirt] [PATCH] Adding filesystem mount support for openVZ

2009-03-11 Thread Florian Vichot
Hi everyone, This patch is to allow using the mount type in the filesystem tag for OpenVZ domains. Example: ... filesystem type='mount' source dir='/path/to/filesystem/directory/' / target dir='/path/to/pivot/root/' / /filesystem ... This is my first patch to an external