mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +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:
parent
7c894911ae
commit
7ae05adf46
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.156 -
|
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
|
Version 2.02.155 - 3rd June 2016
|
||||||
================================
|
================================
|
||||||
|
@ -193,8 +193,7 @@ deactivate_holders () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deactivate_dm () {
|
deactivate_dm () {
|
||||||
local name
|
local name=$(printf "%s" "$name")
|
||||||
name=$(printf "%s" "$name")
|
|
||||||
test -b "$DEV_DIR/mapper/$name" || return 0
|
test -b "$DEV_DIR/mapper/$name" || return 0
|
||||||
test -z ${SKIP_DEVICE_LIST["$kname"]} || return 1
|
test -z ${SKIP_DEVICE_LIST["$kname"]} || return 1
|
||||||
|
|
||||||
@ -263,8 +262,7 @@ deactivate_lvm () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deactivate_md () {
|
deactivate_md () {
|
||||||
local name
|
local name=$(printf "%s" "$name")
|
||||||
name=$(printf "%s" "$name")
|
|
||||||
test -b "$DEV_DIR/$name" || return 0
|
test -b "$DEV_DIR/$name" || return 0
|
||||||
test -z ${SKIP_DEVICE_LIST["$kname"]} || return 1
|
test -z ${SKIP_DEVICE_LIST["$kname"]} || return 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user