summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2016-06-06 14:57:41 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2016-06-06 14:57:46 +0200
commit7ae05adf462b8de4428f32600fb43583dce5009a (patch)
tree97abf57554c43eaf37afe0225c84645113ec559e
parent7c894911aee47662e8f85f4458d65baea97eb058 (diff)
downloadlvm2-7ae05adf462b8de4428f32600fb43583dce5009a.tar.gz
blkdeactivate: fix regression in blkdeactivate causing dm and md devices to be skipped.
Commit #5b3a4a9 caused the "name" variable to be cleared if declaration and assignment is on two lines so put it back so it's on one line for it to work again.
-rw-r--r--WHATS_NEW1
-rw-r--r--scripts/blkdeactivate.sh.in6
2 files changed, 3 insertions, 4 deletions
diff --git a/WHATS_NEW b/WHATS_NEW
index c1b90af13..2e7e13856 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.156 -
================================
+ Fix regression in blkdeactivate causing dm and md devices to be skipped. (2.02.155)
Version 2.02.155 - 3rd June 2016
================================
diff --git a/scripts/blkdeactivate.sh.in b/scripts/blkdeactivate.sh.in
index 2a48b3e0f..b4c3237ef 100644
--- a/scripts/blkdeactivate.sh.in
+++ b/scripts/blkdeactivate.sh.in
@@ -193,8 +193,7 @@ deactivate_holders () {
}
deactivate_dm () {
- local name
- name=$(printf "%s" "$name")
+ local name=$(printf "%s" "$name")
test -b "$DEV_DIR/mapper/$name" || return 0
test -z ${SKIP_DEVICE_LIST["$kname"]} || return 1
@@ -263,8 +262,7 @@ deactivate_lvm () {
}
deactivate_md () {
- local name
- name=$(printf "%s" "$name")
+ local name=$(printf "%s" "$name")
test -b "$DEV_DIR/$name" || return 0
test -z ${SKIP_DEVICE_LIST["$kname"]} || return 1