Displaying 3 results from an estimated 3 matches for "swab_pwrit".
Did you mean:
swab_pwrite
2020 Jul 07
0
[nbdkit PATCH 3/3] RFC swab: Re-enable .extents
...err)
{
- return 0;
+ if (!is_aligned (count, offset)) return -1;
+ return nbdkit_extents_aligned (next_ops, nxdata, count, offset, flags,
+ bits/8, extents, err);
}
/* Cache. */
@@ -223,7 +223,7 @@ static struct nbdkit_filter filter = {
.pwrite = swab_pwrite,
.trim = swab_trim,
.zero = swab_zero,
- .can_extents = swab_can_extents,
+ .extents = swab_extents,
.cache = swab_cache,
};
--
2.27.0
2020 Jul 08
1
Re: [nbdkit PATCH 3/3] RFC swab: Re-enable .extents
...gned (count, offset)) return -1;
> + return nbdkit_extents_aligned (next_ops, nxdata, count, offset, flags,
> + bits/8, extents, err);
> }
>
> /* Cache. */
> @@ -223,7 +223,7 @@ static struct nbdkit_filter filter = {
> .pwrite = swab_pwrite,
> .trim = swab_trim,
> .zero = swab_zero,
> - .can_extents = swab_can_extents,
> + .extents = swab_extents,
> .cache = swab_cache,
> };
>
> --
> 2.27.0
>
> _______________________________________...
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