[Libguestfs] [PATCH] daemon: copy entire lvm directory
Richard W.M. Jones
rjones at redhat.com
Fri Jan 18 07:17:27 UTC 2013
On Thu, Jan 17, 2013 at 02:14:00PM +0000, Richard W.M. Jones wrote:
> On Wed, Jan 02, 2013 at 04:13:06PM +0100, Olaf Hering wrote:
> > cp will fail if /etc/lvm is an empty directory. Copy the entire
> > directory and adjust environment variable.
>
> Thanks - pushed. I changed the whitespace and removed some
> unnecessary parens in this line:
>
> > + snprintf(env, sizeof(env), "%s/lvm", lvm_system_dir);
Actually this breaks the lvm_set_filter test and clearing the LVM
cache (since they expect to find lvm_system_dir/lvm.conf but the file
has now moved to lvm_system_dir/lvm/lvm.conf). I added this patch to
fix it:
https://github.com/libguestfs/libguestfs/commit/d8f14591d10df847fad2e24f2f430b2543020912
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
More information about the Libguestfs
mailing list