All of lore.kernel.org
 help / color / mirror / Atom feed
* Space usage metering
@ 2013-03-29 13:58 Harald Glatt
  2013-03-29 14:12 ` Josef Bacik
  0 siblings, 1 reply; 5+ messages in thread
From: Harald Glatt @ 2013-03-29 13:58 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I'm somewhat confused with who is right on what when it comes to
showing disk usage and space free.

I have a file system that I'm using for testing with a full linux
installed as well as X and a desktop. I've created a good amount of
snapshots and I've also done a lot of changes to the system throuhgout
the process.

I've run a balance before taking these meassurements:

-> df -h reports 59G total space, 18G used, 7G free.
-> btrfs fi df / reports the following:
Data, RAID0: total=16.00GB, used=15.58GB
System, RAID1: total=32.00MB, used=4.00KB
System: total=4.00MB, used=0.00
Metadata, RAID1: total=6.00GB, used=974.36MB

So from what I garther the df reports used space somewhat correctly.
Is it true that my total disk usage should only be around 16.6G now?
Does that include all space required to store the snapshots as well?
I'd be pretty amazed at that number because I've changed A LOT between
snapshots.

Why is df reporting only 7G free? Wouldn't it be possible to make it
report the sum of total minus used instead which would be at least a
lot closer to the truth?

Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-29 14:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-29 13:58 Space usage metering Harald Glatt
2013-03-29 14:12 ` Josef Bacik
2013-03-29 14:18   ` Harald Glatt
2013-03-29 14:27     ` Hugo Mills
2013-03-29 14:31       ` Harald Glatt

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.