btrfs: test balance and resize with an active swap file

Make sure we don't shrink the device past an active swap file, but allow
shrinking otherwise, as well as growing and balance.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Omar Sandoval
2018-11-02 14:29:42 -07:00
committed by Eryu Guan
parent 7f67220a23
commit 96c40c9fc4
3 changed files with 70 additions and 0 deletions
+1
View File
@@ -179,3 +179,4 @@
174 auto quick swap
175 auto quick swap volume
176 auto quick swap volume
177 auto quick swap balance