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

config: Enable ext4 journaling by default. #14977

Merged
merged 1 commit into from Mar 29, 2024

Conversation

jordan-woyak
Copy link
Contributor

Not having a journal by default is a major "gotcha".

Because openwrt does not fsck on boot, a power loss without journaling can result in a dirty filesystem that openwrt will mount as read-only which requires intervention to restore the router to working order.

I think most people would expect ext4 to have a journal and be able to handle a power loss, especially those running on desktop/server class x86 hardware.

Maybe there are some under-powered ext4-using targets that would suffer from using a journal? Someone more familiar with targets other than x86 will have to comment.

Anyways, I think a broken router from a power-loss is worse than the minor overhead of journaling.

Copy link
Contributor

@ehem ehem left a comment

Choose a reason for hiding this comment

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

The patch submission system is complaining about not having anything beyond the top line. I suspect quoting part of what you've got at the top of your pull request might work for the commit message.

Yeah, this does seem like a pretty reasonable idea. I would be awfully tempted to simply purge the option and not allow creation of a non-journaled filesystem.

@jordan-woyak jordan-woyak force-pushed the ext4-default-journal branch 2 times, most recently from 699c501 to 8536cda Compare March 27, 2024 21:16
Not having a journal by default is a major "gotcha".

Because openwrt does not fsck on boot, a power loss without journaling
can result in a dirty filesystem that openwrt will mount as read-only
which requires intervention to restore the router to working order.

Signed-off-by: Jordan Woyak <jordan.woyak@gmail.com>
@openwrt-bot openwrt-bot merged commit f9f2426 into openwrt:main Mar 29, 2024
3 checks passed
@jordan-woyak jordan-woyak deleted the ext4-default-journal branch April 19, 2024 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants