mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-06 11:40:31 +00:00
clarify comment about linux kernel versions
currently, ALL linux kernels are affected.
This commit is contained in:
parent
1a0277021c
commit
99fa484726
1 changed files with 4 additions and 4 deletions
|
@ -196,10 +196,10 @@ chunker_fill(Chunker *c)
|
||||||
// We rollback the initial offset back to the start of the page,
|
// We rollback the initial offset back to the start of the page,
|
||||||
// to avoid it not being truncated as a partial page request.
|
// to avoid it not being truncated as a partial page request.
|
||||||
if (length > 0) {
|
if (length > 0) {
|
||||||
// Linux kernels prior to 4.7 have a bug where they truncate
|
// All Linux kernels (at least up to and including 4.6(.0)) have a bug where
|
||||||
// last partial page of POSIX_FADV_DONTNEED request, so we need
|
// they truncate last partial page of POSIX_FADV_DONTNEED request, so we need
|
||||||
// to page-align it ourselves. We'll need the rest of this page
|
// to page-align it ourselves. We'll need the rest of this page on the next
|
||||||
// on the next read (assuming this was not EOF)
|
// read (assuming this was not EOF).
|
||||||
overshoot = (offset + length) & pagemask;
|
overshoot = (offset + length) & pagemask;
|
||||||
} else {
|
} else {
|
||||||
// For length == 0 we set overshoot 0, so the below
|
// For length == 0 we set overshoot 0, so the below
|
||||||
|
|
Loading…
Add table
Reference in a new issue