Chris Murphy
2014-Oct-29 02:19 UTC
[bug] df reports wrong Size and Avail on raid1, 3.18rc2
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 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html