Bug 1010635 - btrfs-convert: No valid Btrfs found
Summary: btrfs-convert: No valid Btrfs found
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: btrfs-progs
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Josef Bacik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-22 07:54 UTC by Rolf Fokkens
Modified: 2013-12-10 02:40 UTC (History)
4 users (show)

Fixed In Version: btrfs-progs-3.12-1.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-10 02:40:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Rolf Fokkens 2013-09-22 07:54:21 UTC
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

Comment 1 Rolf Fokkens 2013-09-22 08:05:32 UTC
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.

Comment 2 Eric Sandeen 2013-09-23 18:47:43 UTC
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

Comment 3 Tim Landscheidt 2013-10-02 17:42:58 UTC
JFTR: This is also present in Fedora 19 and needs to be fixed there as well.

Comment 4 Eric Sandeen 2013-10-04 17:34:41 UTC
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

Comment 5 Tim Landscheidt 2013-12-10 01:09:27 UTC
With btrfs-progs-3.12-1.fc19.i686, this works for me now in Fedora 19.

Comment 6 Eric Sandeen 2013-12-10 02:40:06 UTC
Great, thanks for the feedback.


Note You need to log in before you can comment on or make changes to this bug.