btrfs-progs/tests
Filipe Manana a57606e815 Btrfs-progs: add feature to get mininum size for resizing a fs/device
Currently there is not way for a user to know what is the minimum size a
device of a btrfs filesystem can be resized to. Sometimes the value of
total allocated space (sum of all allocated chunks/device extents), which
can be parsed from 'btrfs filesystem show' and 'btrfs filesystem usage',
works as the minimum size, but sometimes it does not, namely when device
extents have to relocated to holes (unallocated space) within the new
size of the device (the total allocated space sum).

This change adds the ability to reliably compute such minimum value and
extents 'btrfs filesystem resize' with the following syntax to get such
value:

   btrfs filesystem resize [devid:]get_min_size

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2015-08-31 19:25:03 +02:00
..
fsck-tests btrfs-progs: tests: Add test case for I_ERR_FILE_WRONG_NBYTES repair 2015-07-03 17:57:48 +02:00
misc-tests Btrfs-progs: add feature to get mininum size for resizing a fs/device 2015-08-31 19:25:03 +02:00
clean-tests.sh btrfs-progs: tests: add script to clean intermediate images 2015-05-25 16:10:58 +02:00
common btrfs-progs: tests: common: add helper run_check_stdout 2015-06-02 15:57:51 +02:00
convert-tests.sh btrfs-progs: tests: update convert tests to set fs features 2015-06-04 19:19:08 +02:00
fsck-tests.sh btrfs-progs: tests: use readlink -f to resolve path 2015-05-21 18:48:55 +02:00
misc-tests.sh Btrfs-progs: add feature to get mininum size for resizing a fs/device 2015-08-31 19:25:03 +02:00