mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemuBlockStorageSourceGetEffectiveNodename: Prepare for missing 'format' driver
Return the effective storage nodename if the format layer is not present. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
6ab5ee9a9a
commit
834d283bcf
@ -97,7 +97,10 @@ qemuBlockStorageSourceSetFormatNodename(virStorageSource *src,
|
|||||||
const char *
|
const char *
|
||||||
qemuBlockStorageSourceGetEffectiveNodename(virStorageSource *src)
|
qemuBlockStorageSourceGetEffectiveNodename(virStorageSource *src)
|
||||||
{
|
{
|
||||||
return src->nodenameformat;
|
if (src->nodenameformat)
|
||||||
|
return src->nodenameformat;
|
||||||
|
|
||||||
|
return qemuBlockStorageSourceGetEffectiveStorageNodename(src);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user