Displaying 2 results from an estimated 2 matches for "plugin_start".
2018 Jul 31
0
[PATCH nbdkit 3/4] Add map filter.
...Split map[i] by reducing map[i] and creating second mapping. */
+ second.lineno = map->map[i].lineno;
+ second.rq_start = new_mapping->rq_end+1;
+ second.rq_end = map->map[i].rq_end;
+ offset = new_mapping->rq_end+1 - map->map[i].rq_start;
+ second.plugin_start = map->map[i].plugin_start + offset;
+ if (add_mapping (map, &second) == -1)
+ return -1;
+ map->map[i].rq_end = new_mapping->rq_start-1;
+ }
+ else if (map->map[i].rq_start >= new_mapping->rq_start) {
+ uint64_t offset;
+
+ /* Ad...
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