Hacker News 中文摘要

RSS订阅

Bcachefs 从主线内核中移除 -- Bcachefs removed from the mainline kernel

文章摘要

Linux内核6.18版本中移除了bcachefs文件系统,原因是它已转为DKMS模块,内核代码不再更新。Linus Torvalds在公开和私下讨论后做出了这一决定,以避免版本混淆。

文章总结

标题:Bcachefs文件系统被移出Linux内核主线

[发布于2025年9月30日]

在6.17版本中将bcachefs标记为"外部维护"后,Linus Torvalds在6.18版本中完全移除了该文件系统。移除原因是:"它现在已成为DKMS模块,导致内核中的代码过时,为避免版本混淆而将其移除。"


决策过程

有开发者询问这个决定是如何做出的,Linus是否有权单方面移除内核组件。LWN编辑回应称,虽然Linus确实拥有这样的决定权,但这个决定并非独断专行,而是经过了一系列公开和私下的讨论。

另有开发者补充说明,类似情况也存在于其他方向——某些安全补丁可能只存在于Linus维护的主线内核,而未被及时反向移植到第三方内核版本中。特别是那些年代较久或经过大量修改的第三方内核版本,更容易出现安全补丁缺失的情况。

(注:原文中关于风险的讨论部分因与移除决策主题关联性较弱,在编译时进行了删减处理)

评论总结

以下是评论内容的总结:

  1. 支持Bcachefs的观点

    • 认为Bcachefs的进展是积极的,现在可以作为模块编译,而之前需要自己编译内核。
      引用:"Before the mainline submission, Bcachefs could not be DKMSed... Now, it is available as something that can be compiled as a module."
    • 希望Bcachefs未来能成为ZFS的替代品,支持RAID功能。
      引用:"Would be great to have an in kernel alternative to ZFS for parity RAID."
  2. 对Bcachefs稳定性和性能的担忧

    • 认为Bcachefs的基准测试表现不佳,性能远低于btrfs或ZFS。
      引用:"the benchmarks are a quite disappointing... it's consistently abysmal."
    • 指出项目的稳定性取决于开发团队的稳定性,目前Bcachefs尚未达到成熟水平。
      引用:"Time has proven that the stability of a project stems from the stability of the teams... unless it can be at parity with existing filesystems I can’t be bothered."
  3. 对Linux开发流程的批评

    • 批评Linus Torvalds在Bcachefs合并过程中缺乏果断,导致问题重复出现。
      引用:"Linus just didn’t tell bcachefs developer to take a hike... he always talked and caved and pulled."
    • 认为Linux版本更新过快,建议Bcachefs在FreeBSD等更稳定的平台上开发。
      引用:"Linux seems to have a huge amount of releases in a short time period... FreeBSD would be better suited to develop BcacheFS."

总结:评论中对Bcachefs的看法分为支持、担忧和批评三类,支持者看好其潜力,担忧者关注性能和稳定性,批评者则指向开发流程和团队问题。