mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: fs: allow missing accessmode in the formatter
So far VIR_DOMAIN_FS_ACCESSMODE_PASSTHROUGH is always set in virDomainFSDefPostParse, but future commits aim to change that. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c70fbbbecc
commit
e581703148
@ -25265,9 +25265,9 @@ virDomainFSDefFormat(virBuffer *buf,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
virBufferAsprintf(buf,
|
virBufferAsprintf(buf, "<filesystem type='%s'", type);
|
||||||
"<filesystem type='%s' accessmode='%s'",
|
if (def->accessmode != VIR_DOMAIN_FS_ACCESSMODE_DEFAULT)
|
||||||
type, accessmode);
|
virBufferAsprintf(buf, " accessmode='%s'", accessmode);
|
||||||
if (def->model) {
|
if (def->model) {
|
||||||
virBufferAsprintf(buf, " model='%s'",
|
virBufferAsprintf(buf, " model='%s'",
|
||||||
virDomainFSModelTypeToString(def->model));
|
virDomainFSModelTypeToString(def->model));
|
||||||
|
Loading…
Reference in New Issue
Block a user