]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Add some logging to LXC disk/fs nbd/loop setup
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 8 Oct 2013 15:36:26 +0000 (16:36 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 16 Oct 2013 11:22:40 +0000 (12:22 +0100)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_controller.c

index 851a7735152ca1f0b5b62c7fc517d5e1d6c63830..5067bf1b278e0712831877620aa6da28b1c73c8e 100644 (file)
@@ -363,6 +363,8 @@ static int virLXCControllerSetupLoopDeviceFS(virDomainFSDefPtr fs)
     if ((lofd = virFileLoopDeviceAssociate(fs->src, &loname)) < 0)
         return -1;
 
+    VIR_DEBUG("Changing fs %s to use type=block for dev %s",
+              fs->src, loname);
     /*
      * We now change it into a block device type, so that
      * the rest of container setup 'just works'
@@ -384,6 +386,9 @@ static int virLXCControllerSetupLoopDeviceDisk(virDomainDiskDefPtr disk)
     if ((lofd = virFileLoopDeviceAssociate(disk->src, &loname)) < 0)
         return -1;
 
+    VIR_DEBUG("Changing disk %s to use type=block for dev %s",
+              disk->src, loname);
+
     /*
      * We now change it into a block device type, so that
      * the rest of container setup 'just works'
@@ -413,6 +418,8 @@ static int virLXCControllerSetupNBDDeviceFS(virDomainFSDefPtr fs)
                                   &dev) < 0)
         return -1;
 
+    VIR_DEBUG("Changing fs %s to use type=block for dev %s",
+              fs->src, dev);
     /*
      * We now change it into a block device type, so that
      * the rest of container setup 'just works'
@@ -441,6 +448,8 @@ static int virLXCControllerSetupNBDDeviceDisk(virDomainDiskDefPtr disk)
                                   &dev) < 0)
         return -1;
 
+    VIR_DEBUG("Changing disk %s to use type=block for dev %s",
+              disk->src, dev);
     /*
      * We now change it into a block device type, so that
      * the rest of container setup 'just works'