Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Add backwards compatbility down to kernel 4.4 (fixes #199) #238

Merged
merged 1 commit into from
Aug 11, 2020

Conversation

geofft
Copy link
Collaborator

@geofft geofft commented Aug 11, 2020

4.5 added

4.7 added iterate_shared (torvalds/linux@6192269),
a variant of iterate that takes a non-exclusive lock. It sounds like
it'd be safe to provide an implementation of iterate_shared as iterate.

4.9 removed aio_fsync (torvalds/linux@723c038),
which was never actually used, so we can set it to None in older kernels
and not think about it.

4.13 added wait_for_random_bytes (torvalds/linux@e297a78).
For now, conditionalize the entire random module on it.

All test cases other than random pass on Ubuntu 16.04's kernel.

Update the README to say we expect 4.4 onwards to work, possibly with
newer Clang for really new kernels (refs #219).

4.5 added
 * copy_file_range (torvalds/linux@2973293)
 * clone_file_range (torvalds/linux@04b38d6)
 * dedupe_file_range (torvalds/linux@54dbc15)

4.7 added iterate_shared (torvalds/linux@6192269),
a variant of iterate that takes a non-exclusive lock. It sounds like
it'd be safe to provide an implementation of iterate_shared as iterate.

4.9 removed aio_fsync (torvalds/linux@723c038),
which was never actually used, so we can set it to None in older kernels
and not think about it.

4.13 added wait_for_random_bytes (torvalds/linux@e297a78).
For now, conditionalize the entire random module on it.

All test cases other than random pass on Ubuntu 16.04's kernel.

Update the README to say we expect 4.4 onwards to work, possibly with
newer Clang for really new kernels (refs #219).
@geofft geofft requested a review from alex August 11, 2020 06:46
@geofft geofft merged commit 240393d into master Aug 11, 2020
@geofft geofft deleted the compat-4.4 branch August 11, 2020 13:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants