Displaying 3 results from an estimated 3 matches for "extents_remov".
Did you mean:
extents_remove
2020 Jul 08
1
Re: [nbdkit PATCH 2/3] extents: Add nbdkit_extents_aligned()
...y require further queries.
> + */
> + assert (i == 0);
> + while (e.length < align) {
> + if (exts->extents.size > 1) {
> + e.length += exts->extents.ptr[1].length;
> + e.type &= exts->extents.ptr[1].type;
> + extents_remove (&exts->extents, 1);
> + }
> + else {
> + /* The plugin needs a fresh extents object each time, but
> + * with care, we can merge it into the callers' extents.
> + */
> + extents tmp;
> + CLEANUP_EXTENTS_F...
2020 Jul 07
0
[nbdkit PATCH 2/3] extents: Add nbdkit_extents_aligned()
...ast align bytes, which
+ * may require further queries.
+ */
+ assert (i == 0);
+ while (e.length < align) {
+ if (exts->extents.size > 1) {
+ e.length += exts->extents.ptr[1].length;
+ e.type &= exts->extents.ptr[1].type;
+ extents_remove (&exts->extents, 1);
+ }
+ else {
+ /* The plugin needs a fresh extents object each time, but
+ * with care, we can merge it into the callers' extents.
+ */
+ extents tmp;
+ CLEANUP_EXTENTS_FREE struct nbdkit_extents *extents2...
2020 Jul 07
6
[RFC nbdkit PATCH 0/3] aligned .extents
Ultimately, both the blocksize and swab filters want to return aligned
extents to the client. I'm posting this as a snapshot of my work in
progress on how I plan to get there (it's not quite working yet, but
I'm done for today and wanted to at least document my ideas).
I might also add a convenience function for nbdkit_extents_offset,
since we have a number of filters that repeat the