uvol: lvm: make 'up' call reliable
Changing a volume right after activation doesn't work well due to some caching or race-condition issue. Perform activation as last lvchange operation as a work-around. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
23023e08f5
commit
27c16a70b1
1 changed files with 1 additions and 1 deletions
|
@ -179,8 +179,8 @@ activatevol() {
|
|||
*)
|
||||
[ "$lv_active" = "active" ] && return 0
|
||||
uvol_uci_commit "$1"
|
||||
lvm_cmd lvchange -a y "$lv_full_name" || return $?
|
||||
lvm_cmd lvchange -k n "$lv_full_name" || return $?
|
||||
lvm_cmd lvchange -a y "$lv_full_name" || return $?
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue