News for hackers. Stuff that matters.
Re:Littlefs – A little fail-safe filesystem designed for mic... by danuker on Friday February 18, 2022 @08:28AM (#30385420)
Of 545 commits, 193 mention "fix" or "fixed" or "bug". That is 35.4%, quite high, compared to 10 large C projects I analyzed in 2019, which have a median of 25%.

That could mean file systems are hard to create, or that this particular one is buggy.

https://danuker.go.ro/frequency-of-bugfix-commits.html

Edit: looks like it's a problem with other file systems also:

https://github.com/pellepl/spiffs - 40.2%

https://github.com/tytso/e2fsprogs - 36.8%

But a reimplementation of exFAT is not as buggy: https://github.com/relan/exfat - 19.4%

Re:Littlefs – A little fail-safe filesystem designed for mic... by stjohnswarts on Friday February 18, 2022 @12:13PM (#30388361)
This seems like an awful metric. How many of those projects weren't placed on github until they'd stabilized a bit? Are they file systems? How big were the "bug fixes"? How disastrous/critical were the bug fixes? Do they have a unittest suite? What compilers and linters did they use?
Re:Littlefs – A little fail-safe filesystem designed for mic... by bonyt on Friday February 18, 2022 @08:39AM (#30385520)
Is it a problem, or is it that filesystems are not something you need to add new features to as often and thus commits are biased towards fixes? Or some other reason for a bias?
Re:Littlefs – A little fail-safe filesystem designed for mic... by Rexxar on Friday February 18, 2022 @09:01AM (#30385733)
Or, maybe, it just indicates they prioritize fixing bugs over adding new buggy features.
Re:Littlefs – A little fail-safe filesystem designed for mic... by authorityofnil on Friday February 18, 2022 @09:22AM (#30385974)
In addition, the size of patches can also vary quite a lot on what the author considers a "thing". Some developers fix multiple things at once, while some others think every nut and bolt should be it's own separate commit
Re:Littlefs – A little fail-safe filesystem designed for mic... by stjohnswarts on Friday February 18, 2022 @12:15PM (#30388383)
Yes I believe in save early save often and don't bother squashing and have multiple commits usually in my branch before a merge request. We have another team member that religiously squashes everything down to a single commit on his feature branch before requesting a pull from his branch. We don't have micromanagers so that's just the way things are.
Re:Littlefs – A little fail-safe filesystem designed for mic... by userbinator on Friday February 18, 2022 @09:36AM (#30386174)
But a reimplementation of exFAT is not as buggy

That's not surprising, because the FAT family is relatively simple for a filesystem. As a result, you can easily get read-only support done almost right the first time, and writing is only slightly more difficult.