]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: fix computation of max fs size for multiple device fs tests
authorFilipe Manana <fdmanana@suse.com>
Tue, 6 Nov 2018 15:34:37 +0000 (15:34 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 11 Nov 2018 14:20:09 +0000 (22:20 +0800)
commit97b35b3db97a32ab405d5ffd8e1661526371b091
tree7ae78577a57598deec80f11496f736715f1174e4
parent426518fa2e65f83c16415d4a5e1fd3fc5dec655b
btrfs: fix computation of max fs size for multiple device fs tests

We were sorting numerical values with the 'sort' tool without telling it
that we are sorting numbers, giving us unexpected ordering. So just pass
the '-n' option to the 'sort' tool.

Example:

$ echo -e "11\n9\n20" | sort
11
20
9

$ echo -e "11\n9\n20" | sort -n
9
11
20

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/124
tests/btrfs/125
tests/btrfs/154