大网数据广告活动
服务器运维问答

Ext4 metadata checksums: current feature status

· 52CE 我爱测

The kernel wiki page for ext4 metadata checksums is marked "last modified on 22 October 2013". I couldn't find more recent status information on this feature, except for this question from 2019, which suggests to disable it and t…

问题原文

原帖链接 · MichaelK · CC BY-SA 4.0

The kernel wiki page for ext4 metadata checksums is marked "last modified on 22 October 2013". I couldn't find more recent status information on this feature, except for this question from 2019, which suggests to disable it and the related 64bit feature. One of the answers there claims that the 64bit feature "is not well-tested", but I'm not sure if that's correct. There was no basis quoted for that claim, and given the prevalence of 64-bit systems in recent years, it sounds questionable. I do know metadata_csum depends on 64bit for full checksums.

My question:
As of 2020+, are these two related features (metadata_csum and 64bit) considered stable and safe? How well tested are they, really? Are there any important bugs, gotchas, or failure modes that should be considered before enabling these?

已采纳解答

原帖链接 · anx · CC BY-SA 4.0

A certain Theodore Ts'o has, back in in 2015, enabled both feature by default for filesystems created with version e2fsprogs 1.43. Before that, it was only enabled when needed.

Mke2fs will now create file systems with the metadata_csum and 64bit features enabled by default. e2fsprogs/doc/RelNotes/v1.43.0.txt

That default having found its way into Ubuntu 18.04 (that is the LTS release before the current one) should mean that at least in any setup supported and used with Ubuntu, it is widely tested with kernel versions starting with 4.15. If there were serious issues left, we would know by now.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-03-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。