mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03: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 *
|
||||
qemuBlockStorageSourceGetEffectiveNodename(virStorageSource *src)
|
||||
{
|
||||
return src->nodenameformat;
|
||||
if (src->nodenameformat)
|
||||
return src->nodenameformat;
|
||||
|
||||
return qemuBlockStorageSourceGetEffectiveStorageNodename(src);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user