* btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1
@ 2013-09-05 14:43 Тимофей Титовец
2013-09-05 14:54 ` Hugo Mills
2013-09-05 15:45 ` Eric Sandeen
0 siblings, 2 replies; 10+ messages in thread
From: Тимофей Титовец @ 2013-09-05 14:43 UTC (permalink / raw)
To: linux-btrfs
Hello guys, i try to convert ext4 volume, but btrfs-convert show me error:
"No valid Btrfs found on file
unable to open ctree
conversion aborted."
Ubuntu 13.04
Kernel: 3.11
btrfs-progs git version 0.20-git20130822~194aa4a13
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.
With best regards,
Timofey.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1
2013-09-05 14:43 btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1 Тимофей Титовец
@ 2013-09-05 14:54 ` Hugo Mills
2013-09-05 15:06 ` Roman Mamedov
2013-09-05 15:45 ` Eric Sandeen
1 sibling, 1 reply; 10+ messages in thread
From: Hugo Mills @ 2013-09-05 14:54 UTC (permalink / raw)
To: Тимофей Титовец
Cc: linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]
On Thu, Sep 05, 2013 at 05:43:27PM +0300, Тимофей Титовец wrote:
> Hello guys, i try to convert ext4 volume, but btrfs-convert show me error:
> "No valid Btrfs found on file
> unable to open ctree
> conversion aborted."
> Ubuntu 13.04
> Kernel: 3.11
> btrfs-progs git version 0.20-git20130822~194aa4a13
>
> 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.
I'm guessing here, but I suspect you will need to create a loopback
device so that btrfs-convert can look at it as a block device rather
than as a file:
# losetup -f --show file
/dev/loop0
# btrfs-convert /dev/loop0
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- Eighth Army Push Bottles Up Germans -- WWII newspaper ---
headline (possibly apocryphal)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1
2013-09-05 14:54 ` Hugo Mills
@ 2013-09-05 15:06 ` Roman Mamedov
2013-09-05 15:30 ` Hugo Mills
0 siblings, 1 reply; 10+ messages in thread
From: Roman Mamedov @ 2013-09-05 15:06 UTC (permalink / raw)
To: Hugo Mills
Cc: Тимофей Титовец,
linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 1498 bytes --]
On Thu, 5 Sep 2013 15:54:07 +0100
Hugo Mills <hugo@carfax.org.uk> wrote:
> On Thu, Sep 05, 2013 at 05:43:27PM +0300, Тимофей Титовец wrote:
> > Hello guys, i try to convert ext4 volume, but btrfs-convert show me error:
> > "No valid Btrfs found on file
> > unable to open ctree
> > conversion aborted."
> > Ubuntu 13.04
> > Kernel: 3.11
> > btrfs-progs git version 0.20-git20130822~194aa4a13
> >
> > 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.
>
> I'm guessing here, but I suspect you will need to create a loopback
> device so that btrfs-convert can look at it as a block device rather
> than as a file:
>
> # losetup -f --show file
> /dev/loop0
> # btrfs-convert /dev/loop0
>
> Hugo.
>
Nope, just today I saw someone report the same problem in a blog comment:
http://popey.com/blog/2013/09/02/fun-with-btrfs-on-ubuntu/#comment-9704
-------
# umount /dev/sdb1
# fsck -f /dev/sdb1
fsck из util-linux 2.20.1
e2fsck 1.42.8 (20-Jun-2013)
data500: 144653/30531584 files (0.9% non-contiguous), 102659367/122096384
blocks
# btrfs-convert /dev/sdb1
No valid Btrfs found on /dev/sdb1
unable to open ctree
conversion aborted.
Ubuntu 13.10
btrfs-tools 0.19+20130705-1
-------
It looks like a bug in btrfs-convert.
--
With respect,
Roman
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1
2013-09-05 15:06 ` Roman Mamedov
@ 2013-09-05 15:30 ` Hugo Mills
2013-09-05 15:34 ` Roman Mamedov
0 siblings, 1 reply; 10+ messages in thread
From: Hugo Mills @ 2013-09-05 15:30 UTC (permalink / raw)
To: Roman Mamedov
Cc: Тимофей Титовец,
linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 1686 bytes --]
On Thu, Sep 05, 2013 at 09:06:19PM +0600, Roman Mamedov wrote:
> On Thu, 5 Sep 2013 15:54:07 +0100
> Hugo Mills <hugo@carfax.org.uk> wrote:
>
> > On Thu, Sep 05, 2013 at 05:43:27PM +0300, Тимофей Титовец wrote:
> > > Hello guys, i try to convert ext4 volume, but btrfs-convert show me error:
> > > "No valid Btrfs found on file
> > > unable to open ctree
> > > conversion aborted."
> > > Ubuntu 13.04
> > > Kernel: 3.11
> > > btrfs-progs git version 0.20-git20130822~194aa4a13
> > >
> > > 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.
> >
> > I'm guessing here, but I suspect you will need to create a loopback
> > device so that btrfs-convert can look at it as a block device rather
> > than as a file:
> >
> > # losetup -f --show file
> > /dev/loop0
> > # btrfs-convert /dev/loop0
> >
> > Hugo.
> >
>
> Nope, just today I saw someone report the same problem in a blog comment:
> http://popey.com/blog/2013/09/02/fun-with-btrfs-on-ubuntu/#comment-9704
It's the same person, in fact. I'd not seen that the one on popey's
blog was doing it with block devices. This does indeed look like a
fairly drastic bug...
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- Is it true that "last known good" on Windows XP ---
boots into CP/M?
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1
2013-09-05 15:30 ` Hugo Mills
@ 2013-09-05 15:34 ` Roman Mamedov
2013-09-05 15:44 ` Hugo Mills
0 siblings, 1 reply; 10+ messages in thread
From: Roman Mamedov @ 2013-09-05 15:34 UTC (permalink / raw)
To: Hugo Mills
Cc: Тимофей Титовец,
linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
On Thu, 5 Sep 2013 16:30:23 +0100
Hugo Mills <hugo@carfax.org.uk> wrote:
> > Nope, just today I saw someone report the same problem in a blog comment:
> > http://popey.com/blog/2013/09/02/fun-with-btrfs-on-ubuntu/#comment-9704
>
> It's the same person, in fact.
FWIW both names are Cyrillic but they are different.
--
With respect,
Roman
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1
2013-09-05 15:34 ` Roman Mamedov
@ 2013-09-05 15:44 ` Hugo Mills
0 siblings, 0 replies; 10+ messages in thread
From: Hugo Mills @ 2013-09-05 15:44 UTC (permalink / raw)
To: Roman Mamedov
Cc: Тимофей Титовец,
linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 905 bytes --]
On Thu, Sep 05, 2013 at 09:34:12PM +0600, Roman Mamedov wrote:
> On Thu, 5 Sep 2013 16:30:23 +0100
> Hugo Mills <hugo@carfax.org.uk> wrote:
>
> > > Nope, just today I saw someone report the same problem in a blog comment:
> > > http://popey.com/blog/2013/09/02/fun-with-btrfs-on-ubuntu/#comment-9704
> >
> > It's the same person, in fact.
>
> FWIW both names are Cyrillic but they are different.
No, sorry, you're right. I remembered seeing Timofey's name
somewhere before, and thought it was from that blog post. Clearly I
wasn't all that awake at 7.30 this morning when I read it. :)
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- Is it true that "last known good" on Windows XP ---
boots into CP/M?
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1
2013-09-05 14:43 btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1 Тимофей Титовец
2013-09-05 14:54 ` Hugo Mills
@ 2013-09-05 15:45 ` Eric Sandeen
2013-09-05 18:44 ` Josef Bacik
1 sibling, 1 reply; 10+ messages in thread
From: Eric Sandeen @ 2013-09-05 15:45 UTC (permalink / raw)
To: Тимофей Титовец
Cc: linux-btrfs
On 9/5/13 9:43 AM, Тимофей Титовец wrote:
> Hello guys, i try to convert ext4 volume, but btrfs-convert show me error:
> "No valid Btrfs found on file
> unable to open ctree
> conversion aborted."
> Ubuntu 13.04
> Kernel: 3.11
> btrfs-progs git version 0.20-git20130822~194aa4a13
>
> 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.
This was a regression around July 3; there was no regression test at
the time.
[615f2867854c186a37cb2e2e5a2e13e9ed4ab0df] Btrfs-progs: cleanup similar code in open_ctree_* and close_ctree
broke it.
Patches were sent to the list to fix it on July 17,
https://patchwork.kernel.org/patch/2828820/
but they haven't been merged into the main repo.
I sent a regression test for it to the list on Aug 4, but nobody
reviewed it, so it hasn't been merged into the test suite, either.
Winning all around!
-Eric
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1
2013-09-05 15:45 ` Eric Sandeen
@ 2013-09-05 18:44 ` Josef Bacik
2013-10-11 7:52 ` Daniel
0 siblings, 1 reply; 10+ messages in thread
From: Josef Bacik @ 2013-09-05 18:44 UTC (permalink / raw)
To: Eric Sandeen
Cc: Тимофей Титовец,
linux-btrfs
On Thu, Sep 05, 2013 at 10:45:23AM -0500, Eric Sandeen wrote:
> On 9/5/13 9:43 AM, Тимофей Титовец wrote:
> > Hello guys, i try to convert ext4 volume, but btrfs-convert show me error:
> > "No valid Btrfs found on file
> > unable to open ctree
> > conversion aborted."
> > Ubuntu 13.04
> > Kernel: 3.11
> > btrfs-progs git version 0.20-git20130822~194aa4a13
> >
> > 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.
>
> This was a regression around July 3; there was no regression test at
> the time.
>
> [615f2867854c186a37cb2e2e5a2e13e9ed4ab0df] Btrfs-progs: cleanup similar code in open_ctree_* and close_ctree
>
> broke it.
>
> Patches were sent to the list to fix it on July 17,
>
> https://patchwork.kernel.org/patch/2828820/
>
> but they haven't been merged into the main repo.
>
> I sent a regression test for it to the list on Aug 4, but nobody
> reviewed it, so it hasn't been merged into the test suite, either.
>
> Winning all around!
Alright, alright I'll review it, Jesus. ;),
Josef
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1
2013-09-05 18:44 ` Josef Bacik
@ 2013-10-11 7:52 ` Daniel
2013-10-11 8:00 ` Wang Shilong
0 siblings, 1 reply; 10+ messages in thread
From: Daniel @ 2013-10-11 7:52 UTC (permalink / raw)
To: linux-btrfs
Hello Josef,
Josef Bacik <jbacik <at> fusionio.com> writes:
>
> On Thu, Sep 05, 2013 at 10:45:23AM -0500, Eric Sandeen wrote:
[...]
> > This was a regression around July 3; there was no regression test at
> > the time.
> >
> > [615f2867854c186a37cb2e2e5a2e13e9ed4ab0df] Btrfs-progs: cleanup similar
code in open_ctree_* and close_ctree
> >
> > broke it.
> >
> > Patches were sent to the list to fix it on July 17,
> >
> > https://patchwork.kernel.org/patch/2828820/
> >
> > but they haven't been merged into the main repo.
> >
> > I sent a regression test for it to the list on Aug 4, but nobody
> > reviewed it, so it hasn't been merged into the test suite, either.
> >
> > Winning all around!
>
> Alright, alright I'll review it, Jesus. ;),
Is there any progress on this or can I help with solving this somehow?
> Josef
Daniel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1
2013-10-11 7:52 ` Daniel
@ 2013-10-11 8:00 ` Wang Shilong
0 siblings, 0 replies; 10+ messages in thread
From: Wang Shilong @ 2013-10-11 8:00 UTC (permalink / raw)
To: Daniel; +Cc: linux-btrfs
Hello Daniel,
On 10/11/2013 03:52 PM, Daniel wrote:
> Hello Josef,
>
> Josef Bacik <jbacik <at> fusionio.com> writes:
>
>> On Thu, Sep 05, 2013 at 10:45:23AM -0500, Eric Sandeen wrote:
> [...]
>
>>> This was a regression around July 3; there was no regression test at
>>> the time.
>>>
>>> [615f2867854c186a37cb2e2e5a2e13e9ed4ab0df] Btrfs-progs: cleanup similar
> code in open_ctree_* and close_ctree
>>> broke it.
>>>
>>> Patches were sent to the list to fix it on July 17,
>>>
>>> https://patchwork.kernel.org/patch/2828820/
>>>
>>> but they haven't been merged into the main repo.
>>>
>>> I sent a regression test for it to the list on Aug 4, but nobody
>>> reviewed it, so it hasn't been merged into the test suite, either.
>>>
>>> Winning all around!
>> Alright, alright I'll review it, Jesus. ;),
> Is there any progress on this or can I help with solving this somehow?
This problem has been fixed , but it did not come into Chris's branch.
But it did come into david's integration branches.
http://github.com/kdave/btrfs-progs.git integration-20131008
Thanks,
Wang
>
>> Josef
> Daniel
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-10-11 8:03 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05 14:43 btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1 Тимофей Титовец
2013-09-05 14:54 ` Hugo Mills
2013-09-05 15:06 ` Roman Mamedov
2013-09-05 15:30 ` Hugo Mills
2013-09-05 15:34 ` Roman Mamedov
2013-09-05 15:44 ` Hugo Mills
2013-09-05 15:45 ` Eric Sandeen
2013-09-05 18:44 ` Josef Bacik
2013-10-11 7:52 ` Daniel
2013-10-11 8:00 ` Wang Shilong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).