提交 8f132ef1 编写于 作者: D Daniel P. Berrange

Add some logging to LXC disk/fs nbd/loop setup

Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 1d8afffe
......@@ -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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册