Description of problem: When trying to convert an ext4 FS to BTRFS btrfs-convert refuses claiming "No valid Btrfs found in /dev/mapper/BCACHE-ROOTFS' Version-Release number of selected component (if applicable): btrfs-progs-0.20.rc1.20130917git194aa4a-1.fc20.x86_64 How reproducible: 100% Steps to Reproduce: 1. Build a system running root on LVM 2. Boot an F20 Live DVD 3. yum install btrfs-progs 4. start btrfs-convert /dev/mapper/BCACHE-ROOTFS 5. Error: No valid Btrfs found on /dev/mapper/BCACHE-ROOTFS Actual results: No valid Btrfs found on /dev/mapper/BCACHE-ROOTFS unable to open ctree conversion aborted. Expected results: Smooth conversion Additional info: http://thread.gmane.org/gmane.comp.file-systems.btrfs/28290
The more simple case provide by "Additional info" can also be used to reproduce: Quote: way to reproduce error: $ truncate -s 4G file $ mkfs.ext4 file #say yes to create fs on non block device. $ btrfs-convert file No valid Btrfs found on file unable to open ctree conversion aborted.
Yep, this was regression reported upstream some time ago. A patch to fix it has been sent to the list, but a month later upstream still hasn't merged it (or any other patches). When upstream accepts the fix, we can update btrfs-progs in Fedora to fix this bug. thanks, -Eric
JFTR: This is also present in Fedora 19 and needs to be fixed there as well.
And still JFTR: If upstream ever accepts this (or for that matter any) patch, I'll gladly fix it. "Upstream first" - live by the sword, die by the sword. ;) Thanks, -Eric
With btrfs-progs-3.12-1.fc19.i686, this works for me now in Fedora 19.
Great, thanks for the feedback.