mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 05:40:14 -05:00
Switch esc_tag and path formatting to a contiguous thread-local circular pool to eliminate stack bloat
Some checks failed
Some checks failed
This commit is contained in:
parent
aee71ad2d6
commit
96e20b3912
21 changed files with 283 additions and 260 deletions
|
|
@ -46,12 +46,11 @@ static int parity_entry_compare(const void* void_a, const void* void_b)
|
|||
|
||||
static void dump_entry(void* void_entry)
|
||||
{
|
||||
char esc_buffer[ESC_MAX];
|
||||
struct snapraid_parity_entry* entry = void_entry;
|
||||
printf("%12" PRIu64 " ", entry->low * (uint64_t)entry->block_size);
|
||||
printf("%12" PRIu64 " ", (entry->high - entry->low + 1) * (uint64_t)entry->block_size);
|
||||
printf("%8u ", entry->fragments);
|
||||
printf("%s\n", fmt_term(entry->disk, entry->file->sub, esc_buffer));
|
||||
printf("%s\n", fmt_term(entry->disk, entry->file->sub));
|
||||
}
|
||||
|
||||
static void add_size_to_sum(void* arg, void* void_entry)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue