linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrei Popa <ierdnah@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: [btrfs-progs] btrfs fi df output
Date: Tue, 29 May 2012 10:17:51 +0300	[thread overview]
Message-ID: <1338275871.2271.13.camel@ierdnac-hp> (raw)

Hello,

I have a question regarding "btrfs filesystem df"output.
# btrfs fi df /mnt/test
Data: total=3.01GB, used=512.19MB
System, DUP: total=8.00MB, used=4.00KB
System: total=4.00MB, used=0.00                             <= What this
means? For what is used? I've never seen this incremented
Metadata, DUP: total=2.50GB, used=676.00KB
Metadata: total=8.00MB, used=0.00                        <= the same
question

I have kernel 3.3.6 and btrfs-tools from git.
#mkfs.btrfs /dev/mapper/vg-lvtest
#mount /dev/mapper/vg-lvtest /mnt/test
#dd if=/dev/zero of=/mnt/test/test.file bs=1M count=512 conv=fdatasync
# btrfs fi df /mnt/test
Data: total=3.01GB, used=512.19MB
System, DUP: total=8.00MB, used=4.00KB
System: total=4.00MB, used=0.00
Metadata, DUP: total=2.50GB, used=676.00KB
Metadata: total=8.00MB, used=0.00
ierdnac-hp ~ # 
#umount /mnt/test

These two chunks are the ones that appear below in btrfs-debug-tree ?
Which ones ? In the three there is one 4MB andthree 8MB, one with 2
stripes.

#btrfs-debug-tree /dev/mapper/vg-lvtest 
chunk tree
leaf 20979712 items 12 free space 2557 generation 5 owner 3
fs uuid 6accfaf3-c88a-462e-85fc-35513d0b43d6
chunk uuid 65f22206-a9dd-4053-a660-61bc4ee0be12
	item 0 key (DEV_ITEMS DEV_ITEM 1) itemoff 3897 itemsize 98
		dev item devid 1 total_bytes 116912029696 bytes used 8627683328
	item 1 key (FIRST_CHUNK_TREE CHUNK_ITEM 0) itemoff 3817 itemsize 80
		chunk length 4194304 owner 2 type 2 num_stripes 1
			stripe 0 devid 1 offset 0
	item 2 key (FIRST_CHUNK_TREE CHUNK_ITEM 4194304) itemoff 3737 itemsize
80
		chunk length 8388608 owner 2 type 4 num_stripes 1
			stripe 0 devid 1 offset 4194304
	item 3 key (FIRST_CHUNK_TREE CHUNK_ITEM 12582912) itemoff 3657 itemsize
80
		chunk length 8388608 owner 2 type 1 num_stripes 1
			stripe 0 devid 1 offset 12582912
	item 4 key (FIRST_CHUNK_TREE CHUNK_ITEM 20971520) itemoff 3545 itemsize
112
		chunk length 8388608 owner 2 type 34 num_stripes 2
			stripe 0 devid 1 offset 20971520
			stripe 1 devid 1 offset 29360128

Thanks


                 reply	other threads:[~2012-05-29  7:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1338275871.2271.13.camel@ierdnac-hp \
    --to=ierdnah@gmail.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 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).