search for: rq_end

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

Did you mean: q_end
2018 Jul 31
0
[PATCH nbdkit 3/4] Add map filter.
...< m2->rq_start) + return -1; + else if (m1->rq_start > m2->rq_start) + return 1; + else + return 0; +} + +/* Return true if two mappings overlap in the request range. */ +static int +mappings_overlap (const struct mapping *m1, const struct mapping *m2) +{ + return m1->rq_end >= m2->rq_start && m1->rq_start <= m2->rq_end; +} + +void +map_init (struct map *map) +{ + map->nr_map = 0; + map->map = NULL; +} + +void +map_free (struct map *map) +{ + if (!map) return; + free (map->map); + map_init (map); +} + +/* Return the highest address...
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