Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

journal: replace truncating with punching holes (v252) #434

Open
wants to merge 5 commits into
base: v252-stable
Choose a base branch
from

Conversation

orgads
Copy link

@orgads orgads commented Aug 11, 2024

@orgads orgads marked this pull request as draft August 11, 2024 21:00
poettering and others added 5 commits August 12, 2024 08:43
let's automatically destroy test dirs, instead of manually.

(cherry picked from commit 951174e)
(cherry picked from commit ff95b60)
… more than once

Previously, if journal_file_set_offline() is called twice with 'wait = false',
the second call triggered segfaults, as the offline_state is OFFLINE_DONE,
and journal_file_set_offline_thread_join() tries to call pthread_join()
with NULL.

(cherry picked from commit 46e98df)
It seems truncating might cause SIGBUS (#24320). Let's play it safe
and always prefer punching holes over truncating.

(cherry picked from commit f20c07d)
The added code fails without the previous commit.

For issue #24320.

(cherry picked from commit 3b0ae13)
@orgads orgads marked this pull request as ready for review August 12, 2024 05:54
@orgads orgads changed the title journal: replace truncating with punching holes journal: replace truncating with punching holes (v252) Aug 15, 2024
@orgads
Copy link
Author

orgads commented Aug 15, 2024

ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

4 participants