search for: ranges_append

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

2020 May 22
0
[PATCH nbdkit] DDRESCUE: MISC FIXES
...ges_count++; - map.ranges = realloc(map.ranges, map.ranges_count * sizeof(struct range)); - if (map.ranges == NULL) { + struct range new_range = { .start = offset, .end = offset + length - 1, + .size = length, .status = status }; + + if (ranges_append (&map.ranges, new_range) == -1) { nbdkit_error ("%s: ddrescue: realloc: %m", filename); goto out; } - map.ranges[i].start = offset; - map.ranges[i].end = offset + length - 1; - map.ranges[i].size = length; - map.ranges[i].stat...
2020 May 22
3
[PATCH nbdkit] ddrescue: Miscellaneous fixes.
A few fixes and a possible enhancement to the ddrescue filter. If you think these are all OK, I will squash it into your patch and push it. Rich.