search for: validate_extents_map

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

2019 Mar 19
0
[PATCH nbdkit 1/9] server: Implement extents/can_extents calls for plugins and filters.
...Iu64 " " + "last=%" PRIu64 " type=%" PRIu32 "\n", + map->extents[i].offset, map->extents[i].length, + map->extents[i].offset + map->extents[i].length - 1, + map->extents[i].type); + } +} + +void +validate_extents_map (const struct nbdkit_extents_map *map) +{ + size_t i; + bool fail = false; + + if (map->nr_extents > map->allocated) { + fprintf (stderr, "validate_extents_map: nr_extents > allocated\n"); + fail = true; + } + + for (i = 0; i < map->nr_extents; ++i) { + /*...
2019 Mar 19
15
[PATCH nbdkit 0/9] [mainly for discussion and early review] Implement extents.
I want to post this but mainly for discussion and early review. It's not safe for these patches to all go upstream yet (because not all filters have been checked/adjusted), but if any patches were to go upstream then probably 1 & 2 only are safe. File, VDDK, memory and data plugins all work, although I have only done minimal testing on them. The current tests, such as they are, all