mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 21:30:14 -05:00
Change the flush logic for streams
Now stdout and stderr are always line buffered, and stdlog only flushed on request.
This commit is contained in:
parent
80d51384ac
commit
798de7ca99
16 changed files with 40 additions and 20 deletions
|
|
@ -103,7 +103,7 @@ void parity_overflow(struct snapraid_state* state, data_off_t size)
|
|||
if (file->blockmax > 0) {
|
||||
if (file->blockvec[file->blockmax - 1].parity_pos >= blockalloc) {
|
||||
ftag("outofparity:%s:%s\n", disk->name, file->sub);
|
||||
fflush(stdlog);
|
||||
fflush_log();
|
||||
if (first) {
|
||||
first = 0;
|
||||
printf("\nYour data requires more parity than the available space.\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue