mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-02-25 00:34:30 +01:00
Move message to after size is finalised.
This commit is contained in:
parent
6c33071118
commit
4331ca4058
8
rzip.c
8
rzip.c
|
|
@ -831,11 +831,7 @@ retry:
|
|||
}
|
||||
mmap_stdin(sb.buf_low, st);
|
||||
} else {
|
||||
/* NOTE the buf is saved here for !STDIN mode */
|
||||
if (st->mmap_size < st->chunk_size)
|
||||
print_maxverbose("Enabling sliding mmap mode and using mmap of %lld bytes with window of %lld bytes\n", st->mmap_size, st->chunk_size);
|
||||
|
||||
/* The buf is saved here for !STDIN mode */
|
||||
/* NOTE The buf is saved here for !STDIN mode */
|
||||
sb.buf_low = (uchar *)mmap(sb.buf_low, st->mmap_size, PROT_READ, MAP_SHARED, fd_in, offset);
|
||||
if (sb.buf_low == MAP_FAILED) {
|
||||
st->mmap_size = st->mmap_size / 10 * 9;
|
||||
|
|
@ -844,6 +840,8 @@ retry:
|
|||
fatal("Unable to mmap any ram\n");
|
||||
goto retry;
|
||||
}
|
||||
if (st->mmap_size < st->chunk_size)
|
||||
print_maxverbose("Enabling sliding mmap mode and using mmap of %lld bytes with window of %lld bytes\n", st->mmap_size, st->chunk_size);
|
||||
}
|
||||
print_maxverbose("Succeeded in testing %lld sized mmap for rzip pre-processing\n", st->mmap_size);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue