Fix typo breaking cgroups for NBD backed filesystems
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>
This commit is contained in:
parent
8f132ef1b1
commit
0894ce863f
@ -424,7 +424,7 @@ static int virLXCControllerSetupNBDDeviceFS(virDomainFSDefPtr fs)
|
|||||||
* We now change it into a block device type, so that
|
* We now change it into a block device type, so that
|
||||||
* the rest of container setup 'just works'
|
* 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);
|
VIR_FREE(fs->src);
|
||||||
fs->src = dev;
|
fs->src = dev;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user