]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Re-arrange code setting up ifs/disk loop devices for LXC
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 22 Apr 2013 14:06:15 +0000 (15:06 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 13 May 2013 12:15:19 +0000 (13:15 +0100)
commitc8fa7e8c552b5c29081c8054486ee3df202d3738
tree24d1695301c9a6183afdd3842a01f1bc98f55c25
parentada14b86cc46dd592fba9888218d9950737ecc9a
Re-arrange code setting up ifs/disk loop devices for LXC

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 disk formats depends on what driver is used.

The code for setting loop devices for LXC fs entries also needs
to have the same logic added, now the XML schema supports this.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_controller.c