]> sourceware.org Git - lvm2.git/commitdiff
blkdeactivate: add missing VDO_AVAILABLE check in deactivate_vdo
authorPeter Rajnoha <prajnoha@redhat.com>
Mon, 8 Jun 2020 13:41:35 +0000 (15:41 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Mon, 8 Jun 2020 13:41:35 +0000 (15:41 +0200)
scripts/blkdeactivate.sh.in

index 57b3e58bf6a79abcc9c03d817d543c449a05032b..7c517b87bbe3bcaa45b0fb213a2414c975ed953c 100644 (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... "
This page took 0.041692 seconds and 5 git commands to generate.