mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
btrfs/006: fails with mixed-mode/small disks
as of now the script does not filter 0.00 size in the filesystem show output, which is the case in multi-disk mixed-mode (that is default group type for small disks) Signed-off-by: Anand Jain <Anand.Jain@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
@@ -277,6 +277,12 @@ _filter_uuid()
|
|||||||
fi
|
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 out sizes like 6.14MB etc
|
||||||
_filter_size()
|
_filter_size()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ _filter_btrfs_filesystem_show()
|
|||||||
# the uniq collapses all device lines into 1
|
# the uniq collapses all device lines into 1
|
||||||
_filter_uuid $UUID | _filter_scratch | _filter_scratch_pool | \
|
_filter_uuid $UUID | _filter_scratch | _filter_scratch_pool | \
|
||||||
_filter_size | _filter_btrfs_version | _filter_devid | \
|
_filter_size | _filter_btrfs_version | _filter_devid | \
|
||||||
|
_filter_zero_size | \
|
||||||
sed -e "s/\(Total devices\) $NUMDEVS/\1 $NUM_SUBST/g" | \
|
sed -e "s/\(Total devices\) $NUMDEVS/\1 $NUM_SUBST/g" | \
|
||||||
uniq
|
uniq
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user