[libvirt] [PATCHv3 22/26] util: storage: Add helper to determine whether storage is local

Eric Blake eblake at redhat.com
Thu Jun 26 03:13:42 UTC 2014


On 06/25/2014 10:55 AM, Peter Krempa wrote:
> There's a lot of places where we skip doing actions based on the
> locality of given storage type. The usual pattern is to skip it if:
> 
> virStorageSourceGetActualType(src) == VIR_STORAGE_TYPE_NETWORK
> 
> Add a simple helper to simplify the pattern to
> virStorageSourceIsLocalStorage(src)
> ---
>  src/libvirt_private.syms  | 1 +
>  src/util/virstoragefile.c | 7 +++++++
>  src/util/virstoragefile.h | 1 +
>  3 files changed, 9 insertions(+)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140625/aaaabae4/attachment-0001.sig>


More information about the libvir-list mailing list