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:
|
* virStorageSourceIsEmpty:
|
||||||
*
|
*
|
||||||
|
@ -494,6 +494,9 @@ virStorageSourceGetActualType(const virStorageSource *def);
|
|||||||
bool
|
bool
|
||||||
virStorageSourceIsLocalStorage(const virStorageSource *src);
|
virStorageSourceIsLocalStorage(const virStorageSource *src);
|
||||||
|
|
||||||
|
bool
|
||||||
|
virStorageSourceIsFD(const virStorageSource *src);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
virStorageSourceIsEmpty(virStorageSource *src);
|
virStorageSourceIsEmpty(virStorageSource *src);
|
||||||
|
|
||||||
|
@ -1129,6 +1129,7 @@ virStorageSourceInitiatorParseXML;
|
|||||||
virStorageSourceIsBacking;
|
virStorageSourceIsBacking;
|
||||||
virStorageSourceIsBlockLocal;
|
virStorageSourceIsBlockLocal;
|
||||||
virStorageSourceIsEmpty;
|
virStorageSourceIsEmpty;
|
||||||
|
virStorageSourceIsFD;
|
||||||
virStorageSourceIsLocalStorage;
|
virStorageSourceIsLocalStorage;
|
||||||
virStorageSourceIsRelative;
|
virStorageSourceIsRelative;
|
||||||
virStorageSourceIsSameLocation;
|
virStorageSourceIsSameLocation;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user