1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +03:00

blkdeactivate: add missing VDO_AVAILABLE check in deactivate_vdo

This commit is contained in:
Peter Rajnoha 2020-06-08 15:41:35 +02:00
parent fa9eb76a5d
commit 8806f2d5ed

View File

@ -330,6 +330,12 @@ deactivate_vdo() {
test -b "$DEV_DIR/mapper/$xname" || return 0
test -z "${SKIP_DEVICE_LIST["$kname"]}" || return 1
# Skip VDO device deactivation if VDO tools missing.
test "$VDO_AVAILABLE" -eq 0 && {
add_device_to_skip_list
return 1
}
deactivate_holders "$DEV_DIR/mapper/$xname" || return 1
echo -n " [VDO]: deactivating VDO volume $xname... "