Displaying 3 results from an estimated 3 matches for "extent_list".
Did you mean:
extents_list
2009 Jul 21
3
[PATCH 0/2] Two b-tree bug fixes.
Hi Mark/Joel,
These are 2 bug fix for b-tree. Please review.
I have sent out the first one last week, but it was based on cacheme.
So resend it. Now it bases on joel's fixes branch.
The second one is another b-tree rotation bug. I guess the reason why
we never meet with it is that no one has ever used b-tree like reflink
before. ;)
Regards,
Tao
2020 Apr 19
0
[PATCH nbdkit 2/2] Add insert function and use the new vector library in several places.
...* allocated));
- if (extents == NULL) {
- nbdkit_error ("realloc: %m");
- exit (EXIT_FAILURE);
- }
- }
- memmove (&extents[i+1], &extents[i],
- sizeof (struct extent) * (nr_extents-i));
- extents[i] = new_extent;
- nr_extents++;
-}
+DEFINE_VECTOR_TYPE(extent_list, struct extent);
+static extent_list extents;
static void
extentlist_unload (void)
{
- free (extents);
+ free (extents.ptr);
}
/* Called for each key=value passed on the command line. */
@@ -152,8 +135,8 @@ parse_extentlist (void)
uint64_t end;
assert (extentlist != NULL);
- ass...
2020 Apr 19
2
[PATCH nbdkit 1/2] vddk: Use new vector library to allocate the argv list.
---
plugins/vddk/vddk.c | 41 +++++++++++++++++++++++++----------------
TODO | 1 -
2 files changed, 25 insertions(+), 17 deletions(-)
diff --git a/plugins/vddk/vddk.c b/plugins/vddk/vddk.c
index 87c0d146..d1a3015f 100644
--- a/plugins/vddk/vddk.c
+++ b/plugins/vddk/vddk.c
@@ -51,6 +51,7 @@
#include "isaligned.h"
#include "minmax.h"
#include