From: David Sterba Date: Tue, 1 Jul 2014 14:21:33 +0000 (+0200) Subject: btrfs: adjust statfs calculations according to raid profiles X-Git-Tag: cleanup-for-v3.18~7^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba7b6e62f420f5a8832bc161ab0c7ba767f65b3d;p=pandora-kernel.git btrfs: adjust statfs calculations according to raid profiles This has been discussed in thread: http://thread.gmane.org/gmane.comp.file-systems.btrfs/32528 and this patch implements this proposal: http://thread.gmane.org/gmane.comp.file-systems.btrfs/32536 Works fine for "clean" raid profiles where the raid factor correction does the right job. Otherwise it's pessimistic and may show low space although there's still some left. The df nubmers are lightly wrong in case of mixed block groups, but this is not a major usecase and can be addressed later. The RAID56 numbers are wrong almost the same way as before and will be addressed separately. CC: Hugo Mills CC: cwillu CC: Josef Bacik Signed-off-by: David Sterba Signed-off-by: Chris Mason --- Reading git-diff-tree failed