Re: [Libguestfs] [PATCH nbdkit] plugins/python: Fix extents() count format string

2021-12-19 Thread Richard W.M. Jones
On Sun, Dec 19, 2021 at 10:27:48AM +, Richard W.M. Jones wrote: > On Sun, Dec 19, 2021 at 09:09:39AM +0200, Nir Soffer wrote: > > The plugin used "i" (int32) instead of "I" (uint32) for the count, so > > when the client asks for 4294966784 bytes, the python plugin got -512. > > > > nbdkit:

Re: [Libguestfs] [PATCH nbdkit] plugins/python: Fix extents() count format string

2021-12-19 Thread Richard W.M. Jones
On Sun, Dec 19, 2021 at 09:09:39AM +0200, Nir Soffer wrote: > The plugin used "i" (int32) instead of "I" (uint32) for the count, so > when the client asks for 4294966784 bytes, the python plugin got -512. > > nbdkit: python.0: debug: python: extents count=4294966784 offset=0 > req_one=0 >

[Libguestfs] [PATCH nbdkit] plugins/python: Fix extents() count format string

2021-12-18 Thread Nir Soffer
The plugin used "i" (int32) instead of "I" (uint32) for the count, so when the client asks for 4294966784 bytes, the python plugin got -512. nbdkit: python.0: debug: python: extents count=4294966784 offset=0 req_one=0 ... nbdkit: python.0: debug: extents: count=-512 offset=0 flags=0 W