Displaying 3 results from an estimated 3 matches for "nbdkit_extents_".
Did you mean:
nbdkit_extents
2019 Mar 12
2
Re: [PATCH nbdkit] server: Implement extents/can_extents calls for plugins and filters.
...ssible for filters to transform the extents map received
> +back from the layer below. Usually this must be done by allocating a
> +new map which is passed to the layer below. Without error handling it
> +would look like this:
> +
> + myfilter_extents (...)
> + {
> + struct nbdkit_extents_map *map2 = nbdkit_extents_new ();
> + next_ops->extents (nxdata, count, offset, flags, map2, err);
> + /* transform map2 and return results in extents_map */
> + nbdkit_extents_foreach (map2, transform_offset, extents_map);
> + nbdkit_extents_free (map2);
> + }
And the fa...
2019 Mar 12
0
Re: [PATCH nbdkit] server: Implement extents/can_extents calls for plugins and filters.
...extents map received
> > +back from the layer below. Usually this must be done by allocating a
> > +new map which is passed to the layer below. Without error handling it
> > +would look like this:
> > +
> > + myfilter_extents (...)
> > + {
> > + struct nbdkit_extents_map *map2 = nbdkit_extents_new ();
> > + next_ops->extents (nxdata, count, offset, flags, map2, err);
> > + /* transform map2 and return results in extents_map */
> > + nbdkit_extents_foreach (map2, transform_offset, extents_map);
> > + nbdkit_extents_free (map2);...
2019 Mar 12
2
[PATCH nbdkit] server: Implement extents/can_extents calls for plugins and filters.
Second version based on nbdkit_extent* calls, as discussed here:
https://www.redhat.com/archives/libguestfs/2019-March/msg00033.html
Note in particular there is some subtlety about how filters would work
in this implementation. See docs/nbdkit-filter.pod for the details.
Rich.