mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 05:10:16 -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
|
|
@ -75,8 +75,6 @@ void parity_overflow(struct snapraid_state* state, data_off_t size)
|
|||
tommy_node* i;
|
||||
block_off_t blockalloc;
|
||||
int found = 0;
|
||||
char esc_buffer[ESC_MAX];
|
||||
|
||||
/* don't report if everything is outside or if the file is not accessible */
|
||||
if (size == 0) {
|
||||
return;
|
||||
|
|
@ -97,7 +95,7 @@ void parity_overflow(struct snapraid_state* state, data_off_t size)
|
|||
block_off_t parity_pos = fs_file2par_get(disk, file, file->blockmax - 1);
|
||||
if (parity_pos >= blockalloc) {
|
||||
found = 1;
|
||||
log_tag("outofparity:%s:%s\n", disk->name, esc_tag(file->sub, esc_buffer));
|
||||
log_tag("outofparity:%s:%s\n", disk->name, esc_tag(file->sub));
|
||||
log_fatal(ESOFT, "outofparity %s%s\n", disk->dir, file->sub);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue