Re-arrange code setting up ifs/disk loop devices for LXC
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 <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

zhlcindy/libvirt-1.1.4-maintain,datto/libvirt,nertpinx/libvirt,jfehlig/libvirt,rlaager/libvirt,olafhering/libvirt,zhlcindy/libvirt-1.1.4-maintain,jardasgit/libvirt,datto/libvirt,jardasgit/libvirt,andreabolognani/libvirt,elmarco/libvirt,nertpinx/libvirt,agx/libvirt,shugaoye/libvirt,agx/libvirt,taget/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,crobinso/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,taget/libvirt,eskultety/libvirt,zippy2/libvirt,cbosdo/libvirt,datto/libvirt,jardasgit/libvirt,datto/libvirt,crobinso/libvirt,fabianfreyer/libvirt,zippy2/libvirt,eskultety/libvirt,elmarco/libvirt,eskultety/libvirt,andreabolognani/libvirt,zippy2/libvirt,olafhering/libvirt,fabianfreyer/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,olafhering/libvirt,taget/libvirt,elmarco/libvirt,jardasgit/libvirt,eskultety/libvirt,jfehlig/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,zhlcindy/libvirt-1.1.4-maintain,crobinso/libvirt,cbosdo/libvirt,cbosdo/libvirt,taget/libvirt,eskultety/libvirt,jardasgit/libvirt,rlaager/libvirt,jfehlig/libvirt,nertpinx/libvirt,taget/libvirt,libvirt/libvirt,elmarco/libvirt,libvirt/libvirt,agx/libvirt,zippy2/libvirt,libvirt/libvirt,libvirt/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,shugaoye/libvirt,cbosdo/libvirt,shugaoye/libvirt,rlaager/libvirt,shugaoye/libvirt,olafhering/libvirt,cbosdo/libvirt,VenkatDatta/libvirt,agx/libvirt,andreabolognani/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,nertpinx/libvirt,datto/libvirt,agx/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,rlaager/libvirt,rlaager/libvirt