Re: [Libguestfs] [libnbd PATCH 2/5] python: Don't unwrap nbd.Buffer in nbd.py

2022-06-04 Thread Richard W.M. Jones
On Fri, Jun 03, 2022 at 05:26:32PM -0500, Eric Blake wrote: > Prior to this commit, we were unwrapping buf._o in nbd.py, which > causes cryptic errors when the user passes in the wrong type: > > $ nbdkit -U - memory 10 --run \ > 'nbdsh -u "$uri" -c "h.aio_pread(bytearray(10), 0)"' > Traceback

[Libguestfs] [libnbd PATCH 2/5] python: Don't unwrap nbd.Buffer in nbd.py

2022-06-03 Thread Eric Blake
Prior to this commit, we were unwrapping buf._o in nbd.py, which causes cryptic errors when the user passes in the wrong type: $ nbdkit -U - memory 10 --run \ 'nbdsh -u "$uri" -c "h.aio_pread(bytearray(10), 0)"' Traceback (most recent call last): ... File