1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

conf: storage_source: Introduce virStorageSourceIsFD

The helper will be used in various places that need to check that a disk
source struct is using FD passing.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Peter Krempa 2023-01-05 12:53:19 +01:00
parent 4c9ce062d3
commit 47b922f3f8
3 changed files with 11 additions and 0 deletions

View File

@ -1057,6 +1057,13 @@ virStorageSourceIsLocalStorage(const virStorageSource *src)
}
bool
virStorageSourceIsFD(const virStorageSource *src)
{
return src->fdgroup;
}
/**
* virStorageSourceIsEmpty:
*

View File

@ -494,6 +494,9 @@ virStorageSourceGetActualType(const virStorageSource *def);
bool
virStorageSourceIsLocalStorage(const virStorageSource *src);
bool
virStorageSourceIsFD(const virStorageSource *src);
bool
virStorageSourceIsEmpty(virStorageSource *src);

View File

@ -1129,6 +1129,7 @@ virStorageSourceInitiatorParseXML;
virStorageSourceIsBacking;
virStorageSourceIsBlockLocal;
virStorageSourceIsEmpty;
virStorageSourceIsFD;
virStorageSourceIsLocalStorage;
virStorageSourceIsRelative;
virStorageSourceIsSameLocation;