“把BUG当特性,真是见鬼了”,Linux之父痛斥文件系统“大小写不敏感”:这是天大的错误
3 6 Ke·2025-04-28 07:19

Core Viewpoint - Linus Torvalds criticizes the implementation of case-insensitive file systems, deeming it a fundamental error that should not have been pursued in the first place [5][6][7] Group 1: Background on Bcachefs - Bcachefs is a copy-on-write (COW) file system for Linux, developed by Kent Overstreet since 2015 [3] - A previous patch for case folding support was integrated into Bcachefs, but it failed to function correctly, prompting a new fix before the release of Linux 6.15-rc4 [3][4] - Overstreet acknowledged the oversight in testing and emphasized the importance of verifying code behavior personally rather than relying solely on automated tests [4] Group 2: Linus's Critique - Linus argues that the attempt to implement case insensitivity leads to more uncontrollable issues, particularly due to the complexities of the Unicode standard [6] - He highlights the potential security risks associated with case folding, using the example of similar-looking Unicode characters that could be misidentified as the same file [6][10] - Linus expresses frustration over the continued acceptance of case insensitivity in file systems, comparing it to a flawed design from older systems like FAT [5][6] Group 3: Developer Reactions - Some developers support Linus's stance, emphasizing the importance of case sensitivity in programming and the issues caused by case-insensitive systems [9] - Others argue against Linus's viewpoint, citing practical difficulties in managing files with case sensitivity in certain environments [9] - The debate reflects a broader discussion on the need for standardization and the implications of case sensitivity in file systems [8][10]

“把BUG当特性,真是见鬼了”,Linux之父痛斥文件系统“大小写不敏感”:这是天大的错误 - Reportify