From: Marian Csontos <mcsontos@sourceware.org>
To: lvm-devel@redhat.com
Subject: stable-2.02 - blkdeactivate: add missing VDO_AVAILABLE check in deactivate_vdo
Date: Mon, 19 Oct 2020 15:56:32 +0000 (GMT) [thread overview]
Message-ID: <20201019155632.74FC7388EC0D@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=aa4f1f117a355c7046a348fd217fdfab20242ae6
Commit: aa4f1f117a355c7046a348fd217fdfab20242ae6
Parent: 2c048bd77d669f77825455b8e5110c80beff7da5
Author: Peter Rajnoha <prajnoha@redhat.com>
AuthorDate: Mon Jun 8 15:41:35 2020 +0200
Committer: Marian Csontos <mcsontos@redhat.com>
CommitterDate: Mon Oct 19 16:02:20 2020 +0200
blkdeactivate: add missing VDO_AVAILABLE check in deactivate_vdo
(cherry picked from commit 8806f2d5ed4792042b246b930fb44f24b9ee45c2)
---
scripts/blkdeactivate.sh.in | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/blkdeactivate.sh.in b/scripts/blkdeactivate.sh.in
index 57b3e58bf..7c517b87b 100644
--- a/scripts/blkdeactivate.sh.in
+++ b/scripts/blkdeactivate.sh.in
@@ -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... "
reply other threads:[~2020-10-19 15:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201019155632.74FC7388EC0D@sourceware.org \
--to=mcsontos@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.