File newdf-fix-total-size.patch of Package btrfsprogs

Starting ba7b6e62f420f5a8832bc161ab0c7ba767f65b3d the statfs() call returns the
logical size but we expect the raw size. Calculate it from the available data.

Index: btrfs-progs-v3.16/cmds-fi-disk_usage.c
===================================================================
--- btrfs-progs-v3.16.orig/cmds-fi-disk_usage.c
+++ btrfs-progs-v3.16/cmds-fi-disk_usage.c
@@ -347,7 +347,10 @@ static int print_filesystem_usage_overal
 		goto exit;
 	}
 
-	r_total_size = disk_size(path);
+	r_total_size = 0;
+	for (i = 0; i < devcount; i++)
+		r_total_size += devinfo[i].device_size;
+
 	if (r_total_size == 0) {
 		fprintf(stderr,
 			"ERROR: couldn't get space info on '%s' - %s\n",
openSUSE Build Service is sponsored by