Re: [PATCH] Introduce virBitmapIsBitSet

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

 



On Wed, Mar 11, 2015 at 07:34:22PM +0100, Ján Tomko wrote:
A helper that never returns an error and treats bits out of bitmap range
as false.

Use it everywhere we use ignore_value on virBitmapGetBit, or loop over
the bitmap size.
---
src/conf/domain_conf.c        |  4 +---
src/conf/node_device_conf.c   |  4 +---
src/conf/snapshot_conf.c      |  6 ++----
src/conf/storage_conf.c       |  4 +---
src/libvirt_private.syms      |  1 +
src/libxl/libxl_domain.c      |  4 +---
src/libxl/libxl_driver.c      |  5 +----
src/nodeinfo.c                |  6 +-----
src/qemu/qemu_capabilities.c  |  7 +------
src/storage/storage_backend.c |  4 +---
src/util/virbitmap.c          | 18 ++++++++++++++++++
src/util/virbitmap.h          |  5 +++++
src/util/vircgroup.c          |  4 +---
src/util/virdnsmasq.c         |  6 +-----
src/util/virportallocator.c   | 17 +++--------------
src/util/virprocess.c         |  9 ++-------
src/xen/xen_driver.c          |  4 +---
src/xen/xend_internal.c       |  5 +----
18 files changed, 43 insertions(+), 70 deletions(-)


Nice cleanup, ACK.

Attachment: pgp2jGzjzU3d3.pgp
Description: PGP 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]