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

2014-06-25 Thread Eric Blake
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 t

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

2014-06-25 Thread Peter Krempa
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_p