Re: [libvirt] [PATCH v2 2/5] Re-arrange code setting up ifs/disk loop devices for LXC

2013-04-30 Thread Eric Blake
On 04/22/2013 08:06 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > The current code for setting up loop devices to LXC disks first > does a switch() based on the disk format, then looks at the > disk driver name. Reverse this so it first looks at the driver > name, and then the di

[libvirt] [PATCH v2 2/5] Re-arrange code setting up ifs/disk loop devices for LXC

2013-04-22 Thread Daniel P. Berrange
From: "Daniel P. Berrange" The current code for setting up loop devices to LXC disks first does a switch() based on the disk format, then looks at the disk driver name. Reverse this so it first looks at the driver name, and then the disk format. This is more useful since the list of supported dis