From: Ján Tomko Date: Mon, 7 Sep 2020 15:12:56 +0000 (+0200) Subject: conf: fs: allow missing accessmode in the formatter X-Git-Tag: v7.3.0-rc1~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5817031483c7016f0eecdeb37d77a9a063616ad;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Michal Privoznik --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 508d4bfc32..a9ed74f33e 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -25265,9 +25265,9 @@ virDomainFSDefFormat(virBuffer *buf, return -1; } - virBufferAsprintf(buf, - "accessmode != VIR_DOMAIN_FS_ACCESSMODE_DEFAULT) + virBufferAsprintf(buf, " accessmode='%s'", accessmode); if (def->model) { virBufferAsprintf(buf, " model='%s'", virDomainFSModelTypeToString(def->model));