News: 0001542500

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Bcachefs Landing Fixes So Its Case Insensitive Support Actually Works

([Linux Storage] 6 Hours Ago Case Folding)


Nearly two years ago [1]patches for casefolding / case insensitive file and folder support on Bcachefs were posted by a Valve/Linux developer. That support was upstreamed into the Bcachefs kernel driver but it turns out that it never properly worked. Patches now set for merging into the Linux 6.15 will fix that case insensitive file/folder opt-in support so that it is now properly supported.

With today's Bcachefs fixes sent in ahead of Linux 6.15-rc4 on the weekend, case insensitive directories are now working.

[2]

Bcachefs lead developer Kent Overstreet added a lengthy note to the pull request explaining the Bcachefs case folding/insensitive mishap:

"There's a story behind the case insensitive directory fixes, and lessons to be learned.

When I was discussing with the developer who did the implementation, I noted that fstests should already have tests.

However, it seems I neglected to tell him to make sure the tests actually run. So, there's a lesson here, and since inadequate testing keeps coming up, let me state it now:

It is _not_ enough to simply rely on the automated tests.

You have to have eyes on what your code is doing. That means that until you've thoroughly Familiarized yourself with the code you're working on and the test suites, you need to look - with your eyes - and confirm that the tests are doing what you think they're doing and your code is doing what you think it's doing.

If you're not 100% sure that your code is doing what you think it's doing, it's your responsibility to dig in and verify - add printks, tracepoints, counters, whatever it takes.

Automated test infrastructure is a backstop because there are times when we are all forgetful and miss things.

You have to run your code locally, and look at what it does. I've provided good tools for this. If you're working on my code, make sure you're using them."

So with [3]this pull request , the Bcachefs case insensitive support should be in order. Plus various other small fixes to the week for this copy-on-write file-system.

Update: [4]Linus Torvalds Expresses His Hatred For Case-Insensitive File-Systems



[1] https://www.phoronix.com/news/Bcachefs-Case-Folding-Patches

[2] https://www.phoronix.com/image-viewer.php?id=2025&image=storage_broke_lrg

[3] https://lore.kernel.org/lkml/l7pfaexlj6hs56znw754bwl2spconvhnmbnqxkju5vqxienp4w@h2eocgvgdlip/

[4] https://www.phoronix.com/news/Linus-Torvalds-Anti-Case-Fold



GnuWorldOrder

dammarin

Kjell

reba

curfew

pokeballs

kobblestown

reba

dralley

The Least Successful Police Dogs
America has a very strong candidate in "La Dur", a fearsome looking
schnauzer hound, who was retired from the Orlando police force in Florida
in 1978. He consistently refused to do anything which might ruffle or
offend the criminal classes.
His handling officer, Rick Grim, had to admit: "He just won't go up
and bite them. I got sick and tired of doing that dog's work for him."
The British contenders in this category, however, took things a
stage further. "Laddie" and "Boy" were trained as detector dogs for drug
raids. Their employment was terminated following a raid in the Midlands in
1967.
While the investigating officer questioned two suspects, they
patted and stroked the dogs who eventually fell asleep in front of the
fire. When the officer moved to arrest the suspects, one dog growled at
him while the other leapt up and bit his thigh.
-- Stephen Pile, "The Book of Heroic Failures"