All of lore.kernel.org
 help / color / mirror / Atom feed
From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Interpreting Output of "btrfs fi show"
Date: Thu, 26 Apr 2012 20:54:47 +0000 (UTC)	[thread overview]
Message-ID: <pan.2012.04.26.20.54.46@cox.net> (raw)
In-Reply-To: C7$h9m5PCXB@helmut.hullen.de

Helmut Hullen posted on Thu, 26 Apr 2012 13:11:00 +0200 as excerpted:

> Hallo, Bart,
> 
> Du meintest am 26.04.12:
> 
>>>> As for the two filesystems shown in btrfs fi show... I have no clue
>>>> what that is about. Did you maybe make a mistake to create a btrfs
>>>> filesystem on the whole disk at first?
> 
>>> That is possible. But afterwards I certainly repartioned the device
>>> and created a btrfs filesystem on /dev/sda1. Maybe this info is only
>>> in the partition table? I understand that I should avoid mounting
>>> /dev/sda in this situation.
> 
>> Well I think there is a btrfs superblock still present from the
>> full-disk filesystem. Due to the offset of the first partition from the
>> start of the disk, this superblock was not overwritten when you created
>> the filesystem inside the partition.
> 
> Sounds familiar ...
> 
> I now use to delete about the first 10 MByte of the target disk via "dd
> if=/dev/zero"

Interestingly, this reminds me very much of the problem reiserfs has 
(used to have??) with reiserfsck --rebuild-tree, where it would scan the 
disk and decide anything that looked like a reiserfs superblock must 
indeed be one, so any loopback filesystems created on a larger reiserfs 
would screw up the larger reiserfs if rebuild-tree was ever run on it.

FWIW, I still run reiserfs, while waiting for a new filesystem with tail-
packing (FWIW one of the features btrfs has, but btrfs isn't mature yet), 
but I've never done a loopback reiserfs hosted on reiserfs -- I make sure 
any loopbacks are something else, so I I've never had that problem 
personally nor do I expect to.

But /unlike/ reiserfs, which was only affected with the well warned as 
don't-use-unless-you-have-to fsck --rebuild-tree option, it seems that 
due to btrfs scan, etc, btrfs has its similar problem in more routine 
operation.

But of course Chris Mason, being reiserfs maintainer for many years (and 
whose praises I continue to sing for introducing and making ordered 
journaling the reiserfs default in the mainline kernel... such that 
during the infamous period when ext3 defaulted to writeback journaling, 
reiserfs was arguably more stable than ext3!), both knows and has 
forgotten waayyy more about that than most of us would ever /dream/ of 
knowing in the first place, I'm sure!

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


  parent reply	other threads:[~2012-04-26 20:54 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 [this message]
2012-04-28 16:42           ` Hubert Kario
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=pan.2012.04.26.20.54.46@cox.net \
    --to=1i5t5.duncan@cox.net \
    --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.