[Libguestfs] [PATCH libnbd 0/5] copy: Allow human sizes for --queue-size, etc

Richard W.M. Jones
Sun, 03 Sep 2023 15:23:20 -0000

See companion patch:

  Subject: [PATCH nbdkit] server: Move size parsing code (nbdkit_parse_size) to
common/include

This is the second part of the patch.  It adds the new
human_size_parse function to libnbd and then uses it for parsing
--queue-size, --request-size and --sparse.

The main complication here is that there was already a
common/utils/human-size.h header which ends up (eventually) being
combined with the new header, but the process to get there and ensure
that git bisection works is lengthy.

Eventually we can copy the new, combined "human-size.h" back to
nbdkit, but I didn't add that yet.

Rich.