Re: [PATCH 1/6] util: storage: Add helper to determine whether storage is local

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/03/2014 12:04 PM, 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)

Are you planning to use it anywhere out of those "lot of places"? :)

> ---
>  src/libvirt_private.syms  | 1 +
>  src/util/virstoragefile.c | 7 +++++++
>  src/util/virstoragefile.h | 1 +
>  3 files changed, 9 insertions(+)

ACK

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]