Displaying 2 results from an estimated 2 matches for "nbdkit_extents_adjust_next".
2019 Mar 23
3
Re: [PATCH nbdkit 1/8] server: Implement extents/can_extents calls for plugins and filters.
...ve length, and then omit the offset from 'struct
nbdkit_extent'; also, give filters a way to adjust the next expected
offset. Then you could do something like:
offsetfilter_extents (handle, offset=1000, count=500)
{
// extents has length=0, next=1000, array=[ ]
// implied start=1000
nbdkit_extents_adjust_next (extents, h->offs);
// extents has length=0, next=1000+h->offs, array=[ ]
// implied start=1000+h->offs
ret = next_ops->extents (nxdata, count, offsest + h->offs, flags,
extents, err);
// client populated extents: length=500, next=1500+h->offs, array=[
// { length=10...
2019 Mar 20
15
[PATCH nbdkit 0/8] Implement extents using a simpler array.
Not sure what version we're up to, but this reimplements extents using
the new simpler structure described in this thread:
https://www.redhat.com/archives/libguestfs/2019-March/msg00077.html
I also fixed most of the things that Eric pointed out in the previous
review, although I need to go back over his replies and check I've got
everything.
This needs a bit more testing. However the