search for: extents_h

Displaying 2 results from an estimated 2 matches for "extents_h".

Did you mean: extents
2019 Mar 12
1
Re: [PATCH nbdkit] server: Implement extents/can_extents calls for plugins and filters.
...return > process the array Yes I agree with both these points. In the second case a concrete implementation might look like this (without error checking): /* plugin method */ int extents (void *handle, uint32_t count, uint64_t offset, uint32_t flags, void *extents_h) { nbdkit_extent_add (extents_h, offset, count, NBDKIT_EXTENT_TYPE_DATA); nbdkit_extent_add (extents_h, offset+count, 1024, NBDKIT_EXTENT_TYPE_HOLE); return 0; } /* filter method */ int extents (struct nbdkit_next_ops *next_ops, void *nxdata, void *handle...
2019 Mar 12
4
[PATCH nbdkit] server: Implement extents/can_extents calls for plugins and filters.
This tentative commit implements extents/can_extents, roughly as discussed in the previous thread here: https://www.redhat.com/archives/libguestfs/2019-March/msg00017.html I can't say that I'm a big fan of having the plugin allocate an extents array. There are no other plugin callbacks currently where we require the plugin to allocate complex data structures (or indeed do any allocation