]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-helpers.sh: Deleting forgoten btrfs subvolumes
authorErwan Velu <erwan@redhat.com>
Thu, 25 Feb 2016 13:08:10 +0000 (14:08 +0100)
committerErwan Velu <erwan@redhat.com>
Thu, 25 Feb 2016 14:33:10 +0000 (15:33 +0100)
commitcd0389ddb10b5762af56e6b7ff938dac7308cad9
tree0b67b5605938d08f0a0802e233959451aa1515cd
parentdc5a9053ce69c0630091774f16ce421da67d26fb
ceph-helpers.sh: Deleting forgoten btrfs subvolumes

While running a make check on a btrfs system, many subvolumes are let at the end
of the build. It's pretty common to have several hundreds of those.

btrfs is pretty sensible to the path when requesting a subvolume removal.
The current code was misleading the path and didn't deleted the remaining
volumes.

This patch list the current subvolumes, filter thoses created by the
test process and ajust the path because brtfs reports
  erwan/chroot/ceph/src/testdir/test-7202/dev/osd1/snap_439
while regarding the current working directory we want to delete :
  testdir/test-7202/dev/osd1/snap_439

Signed-off-by: Erwan Velu <erwan@redhat.com>
qa/workunits/ceph-helpers.sh