1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

blkdeactivate: split local declaration and assign

This commit is contained in:
Zdenek Kabelac 2017-06-28 16:50:34 +02:00
parent ce1383fe46
commit dc50f2f4a0

View File

@ -205,7 +205,9 @@ deactivate_holders () {
}
deactivate_dm () {
local name=$(printf "%s" "$name")
local name
name=$(printf "%s" "$name")
test -b "$DEV_DIR/mapper/$name" || return 0
test -z "${SKIP_DEVICE_LIST["$kname"]}" || return 1
@ -274,7 +276,9 @@ deactivate_lvm () {
}
deactivate_md () {
local name=$(printf "%s" "$name")
local name
name=$(printf "%s" "$name")
test -b "$DEV_DIR/$name" || return 0
test -z "${SKIP_DEVICE_LIST["$kname"]}" || return 1