search for: map_iter

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

Did you mean: map_inter
2018 Jul 31
0
[PATCH nbdkit 3/4] Add map filter.
...nxdata, + void *handle, void *buf, uint32_t count, uint64_t offs, + uint32_t flags, int *err) +{ + struct handle *h = handle; + struct pread_data data = { + .next_ops = next_ops, + .nxdata = nxdata, + .buf = buf, + .flags = flags, + .err = err, + }; + + return map_iter (&h->map, count, offs, &data, do_pread, do_pread_unmapped); +} + +/* Write data. */ +static int +map_pwrite (struct nbdkit_next_ops *next_ops, void *nxdata, + void *handle, + const void *buf, uint32_t count, uint64_t offs, uint32_t flags, + int *err) +{ +...
2018 Jul 31
7
[PATCH nbdkit 0/4] Add truncate and map filters.
This patch series proposes two new filters. * truncate: This can truncate, extend, round up or round down the size of a plugin/device. A typical usage is to fix the qemu problem that it can only handle devices which are a multiple of 512-bytes: nbdkit --filter=truncate random size=500 round-up=512 This will serve a virtual device with size 512 bytes. Reading from the last 12 bytes will