[Libguestfs] [PATCH nbdkit v3] common: Move shared bitmap code to a common library.

Richard W.M. Jones rjones at redhat.com
Mon Dec 3 22:42:11 UTC 2018


On Mon, Dec 03, 2018 at 10:13:28PM +0000, Richard W.M. Jones wrote:
> +/* Iterate over blocks represented in the bitmap. */
> +#define bitmap_for(bm, /* uint64_t */ blknum)                           \
> +  for ((blknum) = 0; (blknum) < (bm)->size * (8 / (bm)->bpb); ++(blknum))
                                                ^^^^^^^^^^^^^^^

should be (bm)->ibpb.  I've made the change locally.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list