Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [bug] df reports wrong Size and Avail on raid1, 3.18rc2
@ 2014-10-29  2:19 Chris Murphy
  2014-10-29  2:26 ` Eric Sandeen
  2014-12-09 11:20 ` [PATCH] Btrfs: get more accurate output in fd command Dongsheng Yang
  0 siblings, 2 replies; 19+ messages in thread
From: Chris Murphy @ 2014-10-29  2:19 UTC (permalink / raw)
  To: Btrfs BTRFS

3.18.0-0.rc2.git1.1.fc22.x86_64
btrfs-progs-3.17-1.fc21.x86_64

# btrfs fi show /mnt
Label: 'btrfs1'  uuid: 0f1c615f-30a0-4166-8a3c-987849551513
	Total devices 2 FS bytes used 233.54GiB
	devid    1 size 465.76GiB used 236.03GiB path /dev/sdb
	devid    2 size 298.09GiB used 236.03GiB path /dev/sdc

# df -h /mnt
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb        382G  234G   65G  79% /mnt


a. df -h should report Size as 298GiB rather than as 382GiB.
Because this is 2 device raid1, the limiting factor is devid 2 @ 298GiB.

b. df -h should report Avail as 62GiB or less, rather than as 65GiB.
298.09 - 236.03 = 62.06


Chris Murphy

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

end of thread, other threads:[~2014-12-11  8:31 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29  2:19 [bug] df reports wrong Size and Avail on raid1, 3.18rc2 Chris Murphy
2014-10-29  2:26 ` Eric Sandeen
2014-12-09 11:20 ` [PATCH] Btrfs: get more accurate output in fd command Dongsheng Yang
2014-12-09 18:47   ` Goffredo Baroncelli
2014-12-10  1:08     ` Dongsheng Yang
2014-12-10 10:53       ` Robert White
2014-12-10 13:21         ` Duncan
2014-12-10 15:02           ` Dongsheng Yang
2014-12-10 19:05             ` Goffredo Baroncelli
2014-12-11  8:23               ` Dongsheng Yang
2014-12-11  3:53             ` Duncan
2014-12-11  8:25               ` Dongsheng Yang
2014-12-10 20:36           ` Robert White
2014-12-10 21:03             ` Goffredo Baroncelli
2014-12-10 14:51         ` Dongsheng Yang
2014-12-10 18:25         ` Goffredo Baroncelli
2014-12-11  8:28           ` Dongsheng Yang
2014-12-10 13:59   ` Shriramana Sharma
2014-12-10 14:56     ` Dongsheng Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox