Browse Source

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>
lilik-openwrt-22.03
Daniel Golle 3 years ago
parent
commit
27c16a70b1
No known key found for this signature in database GPG Key ID: 5A8F39C31C3217CA
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/uvol/files/lvm.sh

+ 1
- 1
utils/uvol/files/lvm.sh View File

@ -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…
Cancel
Save