Displaying 2 results from an estimated 2 matches for "rq_start".
Did you mean:
rqd_start
2018 Jul 31
0
[PATCH nbdkit 3/4] Add map filter.
...and add the
+ * intervals to it. At all times we must maintain the invariant that
+ * no intervals in the array may overlap, and therefore we have to
+ * split existing intervals as required. Earlier mappings are
+ * discarded where they overlap with later mappings.
+ */
+
+/* Compare entries by rq_start. */
+static int
+mapping_compare (const void *mv1, const void *mv2)
+{
+ const struct mapping *m1 = mv1;
+ const struct mapping *m2 = mv2;
+
+ if (m1->rq_start < m2->rq_start)
+ return -1;
+ else if (m1->rq_start > m2->rq_start)
+ return 1;
+ else
+ return 0;
+}
+
+/...
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