[PATCH] daemon: Fix /dev/mapper paths from mounts and mountpoints (RHBZ#646432).
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
On Wed, Oct 27, 2010 at 02:53:07PM +0100, Richard W.M. Jones wrote:
+ for (i = 0; ret[i] != NULL; i += 2) {
This line in the patch is wrong. It skips over pairs of strings, which is good for 'mountpoints' but bad for 'mounts'. The line should be: + for (i = 0; ret[i] != NULL; i += mp ? 2 : 1) { Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
participants (1)
-
Richard W.M. Jones