mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Plumb domain description tag in xend backend
xen-unstable changesets 20321 and 20521 added support for description in xend domain config. This patch extends that support in xend backend. * src/xen/xend_internal.c: add parse and output of domain description
This commit is contained in:
parent
16387171c0
commit
723bfda1ce
@ -2366,6 +2366,9 @@ xenDaemonParseSxpr(virConnectPtr conn,
|
|||||||
}
|
}
|
||||||
virUUIDParse(tmp, def->uuid);
|
virUUIDParse(tmp, def->uuid);
|
||||||
|
|
||||||
|
if (sexpr_node_copy(root, "domain/description", &def->description) < 0)
|
||||||
|
goto no_memory;
|
||||||
|
|
||||||
hvm = sexpr_lookup(root, "domain/image/hvm") ? 1 : 0;
|
hvm = sexpr_lookup(root, "domain/image/hvm") ? 1 : 0;
|
||||||
if (!hvm) {
|
if (!hvm) {
|
||||||
if (sexpr_node_copy(root, "domain/bootloader",
|
if (sexpr_node_copy(root, "domain/bootloader",
|
||||||
@ -5699,6 +5702,9 @@ xenDaemonFormatSxpr(virConnectPtr conn,
|
|||||||
virUUIDFormat(def->uuid, uuidstr);
|
virUUIDFormat(def->uuid, uuidstr);
|
||||||
virBufferVSprintf(&buf, "(uuid '%s')", uuidstr);
|
virBufferVSprintf(&buf, "(uuid '%s')", uuidstr);
|
||||||
|
|
||||||
|
if (def->description)
|
||||||
|
virBufferVSprintf(&buf, "(description '%s')", def->description);
|
||||||
|
|
||||||
if (def->os.bootloader) {
|
if (def->os.bootloader) {
|
||||||
if (def->os.bootloader[0])
|
if (def->os.bootloader[0])
|
||||||
virBufferVSprintf(&buf, "(bootloader '%s')", def->os.bootloader);
|
virBufferVSprintf(&buf, "(bootloader '%s')", def->os.bootloader);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user