mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +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:
|
* qemuBlockStorageSourceGetEffectiveStorageNodename:
|
||||||
* @src: virStorageSource to get the effective nodename of
|
* @src: virStorageSource to get the effective nodename of
|
||||||
|
@ -43,6 +43,9 @@ qemuBlockStorageSourceGetStorageNodename(virStorageSource *src);
|
|||||||
const char *
|
const char *
|
||||||
qemuBlockStorageSourceGetFormatNodename(virStorageSource *src);
|
qemuBlockStorageSourceGetFormatNodename(virStorageSource *src);
|
||||||
|
|
||||||
|
const char *
|
||||||
|
qemuBlockStorageSourceGetEffectiveNodename(virStorageSource *src);
|
||||||
|
|
||||||
|
|
||||||
typedef struct qemuBlockNodeNameBackingChainData qemuBlockNodeNameBackingChainData;
|
typedef struct qemuBlockNodeNameBackingChainData qemuBlockNodeNameBackingChainData;
|
||||||
struct qemuBlockNodeNameBackingChainData {
|
struct qemuBlockNodeNameBackingChainData {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user