-
Notifications
You must be signed in to change notification settings - Fork 344
fix: remove ^orphan_file ext4 flag unsupported by older e2fsprogs #2192
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,12 +55,6 @@ func Make(ctx context.Context, rootfsPath string, sizeMb int64, blockSize int64) | |
| "huge_file", | ||
| "large_file", | ||
| "sparse_super2", | ||
|
|
||
| // Disabled for compatibility with older guest e2fsprogs (Ubuntu 22.04, Debian 11). | ||
| // orphan_file was added as default in e2fsprogs >= 1.47.0; without disabling it, | ||
| // guest tools fail with "unsupported read-only feature(s)". | ||
| // See https://e2fsprogs.sourceforge.net/e2fsprogs-release.html#1.47.0 | ||
| "^orphan_file", | ||
| }, ","), | ||
|
Comment on lines
57
to
58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If Useful? React with 👍 / 👎. |
||
| "-b", strconv.FormatInt(blockSize, 10), | ||
| "-m", strconv.FormatInt(reservedBlocksPercentage, 10), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing ^orphan_file entirely fixes the host-side error on e2fsprogs < 1.47.0, but reintroduces the original problem that PR #2082 was solving: on hosts with e2fsprogs >= 1.47.0, orphan_file will now be enabled by default in the filesystem, causing older guests (Ubuntu 22.04, Debian 11) to fail with unsupported read-only feature(s). The safe fix would be to detect host e2fsprogs version at runtime and conditionally pass ^orphan_file only when >= 1.47.0, or to use tune2fs -O ^orphan_file post-creation (which may handle the unknown-feature case more gracefully). As-is, this is a regression for anyone running newer e2fsprogs on the host with older-e2fsprogs guests.