@@ -277,6 +277,12 @@ _filter_uuid()
fi
}
+# In mixed group the added disks may have zero used size
+_filter_zero_size()
+{
+ sed -e "s/0\.00/<SIZE>/g"
+}
+
# Filter out sizes like 6.14MB etc
_filter_size()
{
@@ -33,6 +33,7 @@ _filter_btrfs_filesystem_show()
# the uniq collapses all device lines into 1
_filter_uuid $UUID | _filter_scratch | _filter_scratch_pool | \
_filter_size | _filter_btrfs_version | _filter_devid | \
+ _filter_zero_size | \
sed -e "s/\(Total devices\) $NUMDEVS/\1 $NUM_SUBST/g" | \
uniq
}