I could reproduce it with Ubuntu's mainline kernel 6.11.11 on 24.04. For the higher kernel version there was some compilation error, so I couldn't check it.
There's a number of related bugs, and its not always clear how to even distinguish between them: https://bugzilla.kernel.org/show_bug.cgi?id=74101#c12 https://bugzilla.kernel.org/show_bug.cgi?id=74101#c6 https://bugzilla.kernel.org/show_bug.cgi?id=74101#c5 https://bugs.launchpad.net/ubuntu/+source/btrfs-tools/+bug/1664013 https://github.com/kdave/btrfs-progs/issues/657 https://github.com/kdave/btrfs-progs/issues/936 > What I need to understand is if there's an issue in the kernel which need a patch Kernel code is involved in this bug for sure, but this doesn't seem to be a simple yes/no type of issue that is easy to answer. I believe every btrfs-relevant commit could improve kernel's allocation algorithm behavior. One must format the whole partition and start from scratch to even try to reproduce it. Why not simply merge every btrfs-relevant kernel's commit? Until both kernel btrfs and userspace version are up to date, I don't know how one could even attempt to answer this question. At least some of the issues listed above should be fixed if both btrfs-related kernel's commits and userspace version are up to date. I don't know about specific kernel commits sorry. BTRFS team at https://github.com/kdave/btrfs-progs should be able to advise on this. Hope this helps. ** Bug watch added: Linux Kernel Bug Tracker #74101 https://bugzilla.kernel.org/show_bug.cgi?id=74101 ** Bug watch added: github.com/kdave/btrfs-progs/issues #657 https://github.com/kdave/btrfs-progs/issues/657 ** Bug watch added: github.com/kdave/btrfs-progs/issues #936 https://github.com/kdave/btrfs-progs/issues/936 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2091894 Title: btrfs receive allocates ALL space for DATA & makes it UNUSABLE (24.04.1) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/btrfs-progs/+bug/2091894/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
