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:
parent
4c9ce062d3
commit
47b922f3f8
@ -1057,6 +1057,13 @@ virStorageSourceIsLocalStorage(const virStorageSource *src)
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
virStorageSourceIsFD(const virStorageSource *src)
|
||||
{
|
||||
return src->fdgroup;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* virStorageSourceIsEmpty:
|
||||
*
|
||||
|
@ -494,6 +494,9 @@ virStorageSourceGetActualType(const virStorageSource *def);
|
||||
bool
|
||||
virStorageSourceIsLocalStorage(const virStorageSource *src);
|
||||
|
||||
bool
|
||||
virStorageSourceIsFD(const virStorageSource *src);
|
||||
|
||||
bool
|
||||
virStorageSourceIsEmpty(virStorageSource *src);
|
||||
|
||||
|
@ -1129,6 +1129,7 @@ virStorageSourceInitiatorParseXML;
|
||||
virStorageSourceIsBacking;
|
||||
virStorageSourceIsBlockLocal;
|
||||
virStorageSourceIsEmpty;
|
||||
virStorageSourceIsFD;
|
||||
virStorageSourceIsLocalStorage;
|
||||
virStorageSourceIsRelative;
|
||||
virStorageSourceIsSameLocation;
|
||||
|
Loading…
x
Reference in New Issue
Block a user