Open josefbacik opened 3 years ago
What's the status of this one? I just tried removing the workaround in mkosi on Linux 5.9.14 and still get the same error.
The patch is not merged yet and tagged as test needed
in project card https://github.com/btrfs/linux/projects/1#card-44714604, with obvious meaning.
Ahh, I had no idea it was blocked on testing. I'll see about building a custom kernel with the patch and testing the fix.
Not just testing but writing a test case that will be added to fstests.
How is this issue supposed to be reproduced? I tried creating a btrfs on a loopback device, writing a syngle file, unmounting the fs, it had generation 6. Then I re-created it with mkfs.btrfs /dev/loop0 and it had generation 5. However I was able to mount it, even without this patch ?
I've seen this in my own testing, but haven't been able to reproduce to figure out what it was (it was always unrelated to what I was doing). However mkosi hits it reliably, and they've had to add a btrfs device forget to their script for it to work. This maybe the actual answer, but I need to dig into it to make sure we're not doing something wonkey. They've provided a nice reproducer