]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks: tests for resize subvolume
authorJos Collin <jcollin@redhat.com>
Wed, 4 Sep 2019 10:13:31 +0000 (15:43 +0530)
committerJos Collin <jcollin@redhat.com>
Fri, 15 Nov 2019 00:42:38 +0000 (06:12 +0530)
commit7d9694cd22730cc8033ce9b8fda908473de5c407
tree96b2a92fa19172e20be50fdb9d9e497500e80a30
parent400e4462a5fe92bef49cd43dc64938feee99d6c9
qa/tasks: tests for resize subvolume

* That a subvolume can be expanded in size and its quota matches the expected size.
* That a subvolume can be shrinked in size and its quota matches the expected size.
* That a subvolume cannot be resized to an invalid size and the quota did not change
* That a subvolume cannot be resized to a zero size and the quota did not change
* That a subvolume can be resized to a size smaller than the current used size and
  the resulting quota matches the expected size.
* That a subvolume cannot be resized to a size smaller than the current used size when
  --no_shrink is given and the quota did not change.
* That the subvolume can be expanded from a full subvolume and future writes succeed.

Fixes: https://tracker.ceph.com/issues/41182
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit 045457873d75e7a0f10e36566817dfc1fa0d048d)
qa/tasks/cephfs/test_volumes.py