xapi-project / vhd-tool

Command-line tools for streaming and manipulating vhd format data
Other
8 stars 26 forks source link

CP-29300: Update get_nbd_extents.py to match latest NBD protocol #75

Closed gaborigloi closed 6 years ago

gaborigloi commented 6 years ago

The protocol has been changed, so that now in the response for NBD_REPLY_TYPE_BLOCK_STATUS, the last extent can extend beyond the requested area. The old code would fail with an assertion error in this case. I've fixed the code to correctly deal with this corner case.

gaborigloi commented 6 years ago

See https://lists.debian.org/nbd/2018/08/msg00005.html