mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
qemu: block: Add accessors for storage source effective nodename
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
239772a035
commit
ef0e0c61b2
@ -86,6 +86,20 @@ qemuBlockStorageSourceSetFormatNodename(virStorageSource *src,
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* qemuBlockStorageSourceGetEffectiveNodename:
|
||||
* @src: virStorageSource to get the effective nodename of
|
||||
*
|
||||
* Gets the nodename that exposes the guest visible data. This function always
|
||||
* returns a name.
|
||||
*/
|
||||
const char *
|
||||
qemuBlockStorageSourceGetEffectiveNodename(virStorageSource *src)
|
||||
{
|
||||
return src->nodeformat;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* qemuBlockStorageSourceGetEffectiveStorageNodename:
|
||||
* @src: virStorageSource to get the effective nodename of
|
||||
|
@ -43,6 +43,9 @@ qemuBlockStorageSourceGetStorageNodename(virStorageSource *src);
|
||||
const char *
|
||||
qemuBlockStorageSourceGetFormatNodename(virStorageSource *src);
|
||||
|
||||
const char *
|
||||
qemuBlockStorageSourceGetEffectiveNodename(virStorageSource *src);
|
||||
|
||||
|
||||
typedef struct qemuBlockNodeNameBackingChainData qemuBlockNodeNameBackingChainData;
|
||||
struct qemuBlockNodeNameBackingChainData {
|
||||
|
Loading…
x
Reference in New Issue
Block a user