btrfs/177: Handle the different fi resize output formats
authorMarcos Paulo de Souza <mpdesouza@suse.com>
Thu, 12 Aug 2021 11:30:48 +0000 (08:30 -0300)
committerEryu Guan <guaneryu@gmail.com>
Sun, 15 Aug 2021 10:52:04 +0000 (18:52 +0800)
commit5f883ecb049c76ca0ef7619440a37181843e0548
treeb083bce2d5ea902b310789628d3d2e7655d1d27c
parentab9b671c554960fde00658ff1b1122960e010db0
btrfs/177: Handle the different fi resize output formats

Commit 78aa1d95dd99 ("btrfs-progs: fi resize: make output more
readable") added the device id of the resized fs along with a pretty
printed size. Create a new function to simplify the output message
using size in bytes.

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/177
tests/btrfs/177.out