From: Hugo Mills <hugo-lkml@carfax.org.uk>
To: linux-btrfs@vger.kernel.org
Subject: Re: wrong values in "df" and "btrfs filesystem df"
Date: Sat, 9 Apr 2011 21:38:23 +0100 [thread overview]
Message-ID: <20110409203823.GF5301@carfax.org.uk> (raw)
In-Reply-To: <20110409193549.1809.qmail@stuge.se>
[-- Attachment #1: Type: text/plain, Size: 1416 bytes --]
On Sat, Apr 09, 2011 at 09:35:49PM +0200, Peter Stuge wrote:
> But for such filesystems, Linux can't do what Helmut would like.
Indeed. In the general case, there's no single number that "gets it
right". That said, if data and metadata are the same replication type
for the whole filesystem, you *can* get it pretty much exactly
right(*); if data is the same type for the whole filesystem, you can
get it *nearly* right (since metadata is typically a small fraction of
the data size).
(*) Ignoring the space required for reservations to actually do
anything with the filesystem when it's very close to full...
> Maybe it would be possible to optimize the reported numbers, to be
> what the user actually wants as often as possible. Ie. if there is
> only one type of backing storage (sorry, don't know the terms) then
RAID level or replication strategy. Although "RAID" gives a
slightly misleading impression of what actually happens in btrfs...
> the calculation would be easier to get right, following the simple
> formula that was just given. This is all eye candy however,
> completely irrelevant IMO as long as the filesystem oopses, or eats
> root nodes. :)
>
>
> //Peter
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- Great oxymorons of the world, no. 3: Military Intelligence ---
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
next prev parent reply other threads:[~2011-04-09 20:38 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-09 6:25 wrong values in "df" and "btrfs filesystem df" Helmut Hullen
2011-04-09 9:11 ` Hugo Mills
2011-04-09 9:46 ` Stephane Chazelas
2011-04-09 12:28 ` Helmut Hullen
2011-04-09 16:36 ` Calvin Walton
2011-04-09 17:05 ` Helmut Hullen
2011-04-09 17:26 ` Calvin Walton
2011-04-09 18:15 ` Helmut Hullen
2011-04-09 19:35 ` Peter Stuge
2011-04-09 20:38 ` Hugo Mills [this message]
2011-04-10 10:13 ` Miao Xie
2011-04-11 7:29 ` Stephane Chazelas
2011-04-11 7:56 ` Arne Jansen
2011-04-11 9:06 ` Helmut Hullen
2011-04-12 7:22 ` Miao Xie
2011-04-12 8:17 ` Stephane Chazelas
2011-04-13 5:35 ` Miao Xie
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=20110409203823.GF5301@carfax.org.uk \
--to=hugo-lkml@carfax.org.uk \
--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.