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

blkdeactivate: add missing VDO_AVAILABLE check in deactivate_vdo

(cherry picked from commit 8806f2d5ed)
This commit is contained in:
Peter Rajnoha 2020-06-08 15:41:35 +02:00 committed by Marian Csontos
parent 2c048bd77d
commit aa4f1f117a

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... "