Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bios/efi: always use fsfreeze_thaw_cycle#970

Merged
HuijingHei merged 1 commit into
coreos:mainfrom
champtar:fsfreeze_thaw_cycle2
Jul 21, 2025
Merged

bios/efi: always use fsfreeze_thaw_cycle#970
HuijingHei merged 1 commit into
coreos:mainfrom
champtar:fsfreeze_thaw_cycle2

Conversation

@champtar

Copy link
Copy Markdown
Contributor

This is required when we use XFS, but it doesn't hurt to always use fsfreeze_thaw_cycle.

This is required when we use XFS, but it doesn't hurt
to always use fsfreeze_thaw_cycle.
@openshift-ci

openshift-ci Bot commented Jul 17, 2025

Copy link
Copy Markdown

Hi @champtar. Thanks for your PR.

I'm waiting for a coreos member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces syncfs() calls with fsfreeze_thaw_cycle() to ensure filesystem journals are properly flushed, which is particularly important for XFS. This change improves correctness and robustness by handling errors that were previously ignored. The review suggests simplifying the new calls by passing directory handles directly, avoiding unnecessary open_file calls.

Comment thread src/bios.rs
Comment thread src/efi.rs
Comment thread src/efi.rs
Comment thread src/efi.rs
@HuijingHei

Copy link
Copy Markdown
Contributor

/ok-to-test
/lgtm

@HuijingHei HuijingHei left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HuijingHei

Copy link
Copy Markdown
Contributor

Thank you for the working, refer to fsfreeze_thaw_cycle() that was added in #948

@HuijingHei HuijingHei merged commit 1645ef3 into coreos:main Jul 21, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants