mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
qa/standalone/ceph-helpers.sh: pass btrfs subvolume options the right way
with the latest btrfs-progs, it complains with $ sudo btrfs subvolume list . -t btrfs subvolume list: too many arguments so, we need to pass `-t` right after `list` subcommand. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
0c47aa8217
commit
279d2980fa
@ -196,7 +196,7 @@ function teardown() {
|
||||
function __teardown_btrfs() {
|
||||
local btrfs_base_dir=$1
|
||||
local btrfs_root=$(df -P . | tail -1 | awk '{print $NF}')
|
||||
local btrfs_dirs=$(cd $btrfs_base_dir; sudo btrfs subvolume list . -t | awk '/^[0-9]/ {print $4}' | grep "$btrfs_base_dir/$btrfs_dir")
|
||||
local btrfs_dirs=$(cd $btrfs_base_dir; sudo btrfs subvolume list -t . | awk '/^[0-9]/ {print $4}' | grep "$btrfs_base_dir/$btrfs_dir")
|
||||
for subvolume in $btrfs_dirs; do
|
||||
sudo btrfs subvolume delete $btrfs_root/$subvolume
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user