1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 10:25:13 +03:00

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.
This commit is contained in:
Peter Rajnoha 2016-06-06 14:57:41 +02:00
parent 7c894911ae
commit 7ae05adf46
2 changed files with 3 additions and 4 deletions

View File

@ -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
================================

View File

@ -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