mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-03 15:43:51 +00:00
Add 'nbd' as a valid filesystem driver type
The <filesystem> element can now accept a <driver type='nbd'/> as an alternative to 'loop'. The benefit of NBD is support for non-raw disk image formats. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
8aabd597b3
commit
13579d4544
@ -1992,8 +1992,9 @@
|
|||||||
the <code>type</code> attribute selects the primary
|
the <code>type</code> attribute selects the primary
|
||||||
backend driver name, while the <code>format</code>
|
backend driver name, while the <code>format</code>
|
||||||
attribute provides the format type. For example, LXC
|
attribute provides the format type. For example, LXC
|
||||||
supports a type of "loop", with a format of "raw". QEMU
|
supports a type of "loop", with a format of "raw" or
|
||||||
supports a type of "path" or "handle", but no formats.
|
"nbd" with any format. QEMU supports a type of "path"
|
||||||
|
or "handle", but no formats.
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
|
@ -1675,6 +1675,7 @@
|
|||||||
<value>path</value>
|
<value>path</value>
|
||||||
<value>handle</value>
|
<value>handle</value>
|
||||||
<value>loop</value>
|
<value>loop</value>
|
||||||
|
<value>nbd</value>
|
||||||
</choice>
|
</choice>
|
||||||
</attribute>
|
</attribute>
|
||||||
</optional>
|
</optional>
|
||||||
|
@ -343,7 +343,8 @@ VIR_ENUM_IMPL(virDomainFSDriverType, VIR_DOMAIN_FS_DRIVER_TYPE_LAST,
|
|||||||
"default",
|
"default",
|
||||||
"path",
|
"path",
|
||||||
"handle",
|
"handle",
|
||||||
"loop")
|
"loop",
|
||||||
|
"nbd")
|
||||||
|
|
||||||
VIR_ENUM_IMPL(virDomainFSAccessMode, VIR_DOMAIN_FS_ACCESSMODE_LAST,
|
VIR_ENUM_IMPL(virDomainFSAccessMode, VIR_DOMAIN_FS_ACCESSMODE_LAST,
|
||||||
"passthrough",
|
"passthrough",
|
||||||
|
@ -801,6 +801,7 @@ enum virDomainFSDriverType {
|
|||||||
VIR_DOMAIN_FS_DRIVER_TYPE_PATH,
|
VIR_DOMAIN_FS_DRIVER_TYPE_PATH,
|
||||||
VIR_DOMAIN_FS_DRIVER_TYPE_HANDLE,
|
VIR_DOMAIN_FS_DRIVER_TYPE_HANDLE,
|
||||||
VIR_DOMAIN_FS_DRIVER_TYPE_LOOP,
|
VIR_DOMAIN_FS_DRIVER_TYPE_LOOP,
|
||||||
|
VIR_DOMAIN_FS_DRIVER_TYPE_NBD,
|
||||||
|
|
||||||
VIR_DOMAIN_FS_DRIVER_TYPE_LAST
|
VIR_DOMAIN_FS_DRIVER_TYPE_LAST
|
||||||
};
|
};
|
||||||
|
@ -140,6 +140,7 @@ VIR_ENUM_IMPL(qemuDomainFSDriver, VIR_DOMAIN_FS_DRIVER_TYPE_LAST,
|
|||||||
"local",
|
"local",
|
||||||
"local",
|
"local",
|
||||||
"handle",
|
"handle",
|
||||||
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,6 +19,11 @@
|
|||||||
<source file='/root/container.img'/>
|
<source file='/root/container.img'/>
|
||||||
<target dir='/'/>
|
<target dir='/'/>
|
||||||
</filesystem>
|
</filesystem>
|
||||||
|
<filesystem type='file' accessmode='passthrough'>
|
||||||
|
<driver type='nbd' format='qcow2'/>
|
||||||
|
<source file='/root/container.qcow2'/>
|
||||||
|
<target dir='/home'/>
|
||||||
|
</filesystem>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='lxc' port='0'/>
|
<target type='lxc' port='0'/>
|
||||||
</console>
|
</console>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user