On 10/28/14 9:19 PM, Chris Murphy wrote: > 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
Is there an fstest for btrfs disk space reporting? ext2/3/4 used to keep getting "overhead" wrong for various filesystem types ... until we wrote a regression test. Just sayin' :) -Eric -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html