From: Martin Steigerwald <Martin@lichtvoll.de>
To: linux-btrfs@vger.kernel.org
Cc: "Goffredo Baroncelli" <goffredo.baroncelli@yahoo.com>,
"Hugo Mills" <hugo@carfax.org.uk>,
"Michael Kjörling" <michael@kjorling.se>,
cwillu <cwillu@cwillu.com>,
"Chris Murphy" <lists@colorremedies.com>,
"David Sterba" <dsterba@suse.cz>, "Zach Brown" <zab@zabbo.net>
Subject: Re: [PATCH V2][BTRFS-PROGS] Enhance btrfs fi df with raid5/6 support
Date: Tue, 26 Feb 2013 13:55:41 +0100 [thread overview]
Message-ID: <201302261355.41925.Martin@lichtvoll.de> (raw)
In-Reply-To: <1361627171-8246-1-git-send-email-goffredo.baroncelli@yahoo.com>
Am Samstag, 23. Februar 2013 schrieb Goffredo Baroncelli:
> Hi all,
Hi Goffredo,
> I updates my previous patches [1] to add support for raid5/6.
> These patches update the btrfs fi df command and add two new commands:
> - btrfs filesystem disk-usage <path>
> - btrfs device disk-usage <path>
Tested-By: Martin Steigerwald <martin@lichtvoll.de>
Only for -d single and -m single, I have RAID-1 at workstation at work,
but will take some time till I get to office again.
No RAID-5/6 setup at the moment. So test obviously not complete yet.
merkaba:~> /tmp/btrfs fi sh
failed to read /dev/sr0
Label: 'home' uuid: […]
Total devices 1 FS bytes used 196.11GB
devid 1 size 223.52GB used 204.02GB path /dev/dm-2
Label: 'debian' uuid: […]
Total devices 1 FS bytes used 10.69GB
devid 1 size 18.62GB used 17.02GB path /dev/dm-0
Btrfs v0.19-367-g711b24a
/:
merkaba:~> /tmp/btrfs fi df /
Disk size: 18.62GB
Disk allocated: 17.02GB
Disk unallocated: 1.61GB
Used: 10.69GB
Free (Estimated): 7.93GB (Max: 7.93GB, min: 7.13GB)
Data to disk ratio: 100 %
merkaba:~> /tmp/btrfs fi disk-usage /
Data,Single: Size:16.01GB, Used:10.14GB
/dev/dm-0 16.01GB
Metadata,Single: Size:1.01GB, Used:565.34MB
/dev/dm-0 1.01GB
System,Single: Size:4.00MB, Used:4.00KB
/dev/dm-0 4.00MB
Unallocated:
/dev/dm-0 1.61GB
merkaba:~> /tmp/btrfs fi disk-usage -t /
Data Metadata System
Single Single Single Unallocated
/dev/dm-0 16.01GB 1.01GB 4.00MB 1.61GB
======= ======== ====== ===========
Total 16.01GB 1.01GB 4.00MB 1.61GB
Used 10.14GB 565.34MB 4.00KB
merkaba:~> /tmp/btrfs dev disk-usage /
/dev/dm-0 18.62GB
Data,Single: 16.01GB
Metadata,Single: 1.01GB
System,Single: 4.00MB
Unallocated: 1.61GB
/home (quite fresh fs):
merkaba:~#129> /tmp/btrfs fi df /home
Disk size: 223.52GB
Disk allocated: 204.02GB
Disk unallocated: 19.50GB
Used: 196.11GB
Free (Estimated): 27.40GB (Max: 27.40GB, min: 17.66GB)
Data to disk ratio: 100 %
merkaba:~> /tmp/btrfs fi disk-usage /home
Data,Single: Size:202.01GB, Used:194.67GB
/dev/dm-2 202.01GB
Metadata,Single: Size:2.01GB, Used:1.44GB
/dev/dm-2 2.01GB
System,Single: Size:4.00MB, Used:48.00KB
/dev/dm-2 4.00MB
Unallocated:
/dev/dm-2 19.50GB
merkaba:~> /tmp/btrfs fi disk-usage -t /home
Data Metadata System
Single Single Single Unallocated
/dev/dm-2 202.01GB 2.01GB 4.00MB 19.50GB
======== ======== ======= ===========
Total 202.01GB 2.01GB 4.00MB 19.50GB
Used 194.67GB 1.44GB 48.00KB
merkaba:~> /tmp/btrfs dev disk-usage /home
/dev/dm-2 223.52GB
Data,Single: 202.01GB
Metadata,Single: 2.01GB
System,Single: 4.00MB
Unallocated: 19.50GB
Thanks,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
prev parent reply other threads:[~2013-02-26 12:55 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-23 13:46 [PATCH V2][BTRFS-PROGS] Enhance btrfs fi df with raid5/6 support Goffredo Baroncelli
2013-02-23 13:46 ` [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation Goffredo Baroncelli
2013-02-25 2:20 ` Eric Sandeen
2013-02-25 19:59 ` Goffredo Baroncelli
2013-02-25 20:19 ` Zach Brown
2013-02-25 21:00 ` Goffredo Baroncelli
2013-02-23 13:46 ` [PATCH 2/8] Enhance the command btrfs filesystem df Goffredo Baroncelli
2013-02-23 13:46 ` [PATCH 3/8] Create the man page entry for the command btrfs fi df Goffredo Baroncelli
2013-02-23 13:46 ` [PATCH 4/8] Add helpers functions to handle the printing of data in tabular format Goffredo Baroncelli
2013-02-23 13:46 ` [PATCH 5/8] Add command btrfs filesystem disk-usage Goffredo Baroncelli
2013-02-23 13:46 ` [PATCH 6/8] Create entry in man page for " Goffredo Baroncelli
2013-02-23 13:46 ` [PATCH 7/8] Add btrfs device disk-usage command Goffredo Baroncelli
2013-02-23 13:46 ` [PATCH 8/8] Create a new entry in btrfs man page for btrfs device disk-usage Goffredo Baroncelli
2013-02-25 17:38 ` [PATCH V2][BTRFS-PROGS] Enhance btrfs fi df with raid5/6 support Zach Brown
2013-02-26 11:09 ` Martin Steigerwald
2013-02-26 11:28 ` Gareth Pye
2013-02-26 12:58 ` Martin Steigerwald
2013-02-26 13:15 ` Martin Steigerwald
2013-02-26 12:55 ` Martin Steigerwald [this message]
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=201302261355.41925.Martin@lichtvoll.de \
--to=martin@lichtvoll.de \
--cc=cwillu@cwillu.com \
--cc=dsterba@suse.cz \
--cc=goffredo.baroncelli@yahoo.com \
--cc=hugo@carfax.org.uk \
--cc=linux-btrfs@vger.kernel.org \
--cc=lists@colorremedies.com \
--cc=michael@kjorling.se \
--cc=zab@zabbo.net \
/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.