From: Hubert Kario <hka@qbs.com.pl>
To: Duncan <1i5t5.duncan@cox.net>
Cc: linux-btrfs@vger.kernel.org, chris.mason@oracle.com, josef@redhat.com
Subject: Re: Interpreting Output of "btrfs fi show"
Date: Sat, 28 Apr 2012 18:42:52 +0200 [thread overview]
Message-ID: <8118972.tgkAvno4mK@bursa22> (raw)
In-Reply-To: <pan.2012.04.26.20.54.46@cox.net>
On Thursday 26 of April 2012 20:54:47 Duncan wrote:
> Helmut Hullen posted on Thu, 26 Apr 2012 13:11:00 +0200 as excerpted:
> > Hallo, Bart,
> >>=20
> >> Well I think there is a btrfs superblock still present from the
> >> full-disk filesystem. Due to the offset of the first partition fro=
m the
> >> start of the disk, this superblock was not overwritten when you cr=
eated
> >> the filesystem inside the partition.
> >=20
> > Sounds familiar ...
> >=20
> > I now use to delete about the first 10 MByte of the target disk via=
"dd
> > if=3D/dev/zero"
>=20
> But /unlike/ reiserfs, which was only affected with the well warned a=
s
> don't-use-unless-you-have-to fsck --rebuild-tree option, it seems tha=
t
> due to btrfs scan, etc, btrfs has its similar problem in more routine
> operation.
I'd say that this kind of problem is basically impossible in btrfs beca=
use=20
of FS UUID written all over the tree.
What we see here, is a superblock that is written in *very* specific pl=
ace=20
on the partition, that just is aligned in place that makes the whole di=
sk=20
look like btrfs.
I don't think it's actually possible for btrfs to put a file with btrfs=
=20
filesystem image in place where it could seem like the basic block devi=
ce=20
has btrfs /too/. It depends on whatever the metadata block is allocated=
=20
before data block on disk. It /may/ be possible in mixed data-metadata=20
allocation mode.
Chris or Josef, can you confirm?
Still, a "zero-superblock" option would be useful for the btrfs tool. I=
'll=20
see what I can do about this.
Regards,
--=20
Hubert Kario
QBS - Quality Business Software
02-656 Warszawa, ul. Ksawer=F3w 30/85
tel. +48 (22) 646-61-51, 646-74-24
www.qbs.com.pl
--
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
next prev parent reply other threads:[~2012-04-28 16:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-26 2:34 Interpreting Output of "btrfs fi show" Thomas Rohwer
2012-04-26 8:34 ` Bart Noordervliet
2012-04-26 9:06 ` Thomas Rohwer
2012-04-26 10:04 ` Bart Noordervliet
2012-04-26 10:14 ` Thomas Rohwer
2012-04-26 11:11 ` Helmut Hullen
2012-04-26 11:53 ` David Sterba
2012-04-26 13:59 ` Helmut Hullen
2012-04-26 20:54 ` Duncan
2012-04-28 16:42 ` Hubert Kario [this message]
2012-04-29 4:15 ` Duncan
2012-04-30 17:03 ` Hubert Kario
2012-04-29 18:34 ` Hugo Mills
2012-04-29 6:13 ` Martin Steigerwald
2012-04-30 17:10 ` Hubert Kario
2012-04-30 18:12 ` Mike Fleetwood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8118972.tgkAvno4mK@bursa22 \
--to=hka@qbs.com.pl \
--cc=1i5t5.duncan@cox.net \
--cc=chris.mason@oracle.com \
--cc=josef@redhat.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.