Skip to content

tests/auto-prune: Cap the ext4 orphan file on the 1k-block /boot image - #7

Draft
cgwalters-bot wants to merge 1 commit into
mainfrom
bot/auto-prune-orphan-file
Draft

cgwalters-bot wants to merge 1 commit into
mainfrom
bot/auto-prune-orphan-file

Conversation

@cgwalters-bot

Copy link
Copy Markdown
Collaborator

Fixes the ext.ostree.destructive.auto-prune.sh failure in CoreOS CI on every PR, including ostreedev#3690: mount: /var/mnt: fsconfig() failed: Structure needs cleaning.

Since e2fsprogs 1.47.4, mke2fs gives this test's 1k-block image a 681984-byte orphan file. The kernel caps that at 512k and refuses the mount (EXT4-fs (loop0): orphan file too big). This passes -E orphan_file_size=512K, and falls back to the plain call on mke2fs versions without the orphan_file feature.

Checked with Fedora 45's e2fsprogs 1.47.4-2: the orphan inode is 681984 bytes by default and 524288 with the option. CentOS Stream 9's 1.46.5 rejects the option, and the fallback succeeds. Full analysis, including kernel 7.1/7.2 mount reproductions: https://github.com/bootc-dev/cgwalters-devspace-sandbox/blob/main/work/boot-2402/EUCLEAN.md

Tracked in cgwalters-forge/tracker#1574.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters

Copy link
Copy Markdown

This looks out of date? I guess we need a process that's continually fast forwarding our midstream main or equiv branches?

@cgwalters cgwalters 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.

See above

@cgwalters-bot

cgwalters-bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator Author

Fix round 1 of 2 for 21598b137ad6: run.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot

cgwalters-bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator Author
⏸️ [dispatch](https://github.com/cgwalters-forge/tracker/actions/runs/43333224777) is blocked: it handed back missing_data and no change. Its reason:

updated PR base: Review concerns stale main: fork base ef6e496 is 62 commits behind PR head; upstream main 896d522 is its parent. No VERDICT or failing checks exist.
context: Maintainer must fast-forward cgwalters-forge/ostree main to upstream main and reassess PR #7. Checkout unchanged; no replacement or push.
alternatives: Cannot update base branch or emit add_comment with allowed outputs. Replacing against stale base includes unrelated changes and protected paths.

@cgwalters-bot cgwalters-bot added the needs-human The poll stopped here; a person decides what is next label Nov 13, 2026
@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

The poll stopped following this pull request: fix round 1 is blocked: its run https://github.com/cgwalters-forge/tracker/actions/runs/43333224777 ended (success) and pushed no new head for 21598b1 (review requested changes). It is labelled needs-human; remove the label to have the poll start again on it, with fresh fix rounds.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

This fork's main is 61 commits behind upstream. Keeping forks fast-forwarded is tracker#1581; routing stops like this one to the supervisor instead of needs-human is agent-board#925. The draft gets rebased onto current upstream once the sync lands.

Generated-by: https://github.com/cgwalters/#llms

Since e2fsprogs 1.47.4 (commit 6f03c698ef53), mke2fs sizes the orphan
file for this ~700M 1k-block image at 681984 bytes. The kernel accepts
at most 512k at that block size, so the loop mount fails with
"Structure needs cleaning" (EUCLEAN) and the test never gets to ostree.

Ask for a 512k orphan file. mke2fs from before the orphan_file feature
(e.g. 1.46.5 on CentOS Stream 9) rejects the option, so fall back to the
plain invocation there.

Assisted-by: https://github.com/cgwalters/cgwalters#llms
@cgwalters-bot
cgwalters-bot force-pushed the bot/auto-prune-orphan-file branch from 21598b1 to 84061f4 Compare November 20, 2026 21:07
@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

/review

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

Labels

needs-human The poll stopped here; a person decides what is next

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants