]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix typo breaking cgroups for NBD backed filesystems
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 8 Oct 2013 15:36:49 +0000 (16:36 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 16 Oct 2013 11:22:40 +0000 (12:22 +0100)
A typo in the setup of NBD backed filesystems meant the
/dev/nbdN device would not be added to the cgroups device
ACL.

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

index 5067bf1b278e0712831877620aa6da28b1c73c8e..aa30d8e375f59870731e79c417600468920a0c0e 100644 (file)
@@ -424,7 +424,7 @@ static int virLXCControllerSetupNBDDeviceFS(virDomainFSDefPtr fs)
      * We now change it into a block device type, so that
      * the rest of container setup 'just works'
      */
-    fs->type = VIR_DOMAIN_DISK_TYPE_BLOCK;
+    fs->type = VIR_DOMAIN_FS_TYPE_BLOCK;
     VIR_FREE(fs->src);
     fs->src = dev;