mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-27 18:55:19 +03:00
lvmdbusd: Update state during pv move
Periodically update the state during pv move so that all the different dbus objects reflect something close to reality during the process.
This commit is contained in:
parent
3ead4fb7ac
commit
b65a9230a3
@ -64,6 +64,10 @@ def _move_merge(interface_name, command, job_state):
|
||||
(device, ignore, percentage) = line_str.split(':')
|
||||
job_state.Percent = round(
|
||||
float(percentage.strip()[:-1]), 1)
|
||||
|
||||
# While the move is in progress we need to periodically update
|
||||
# the state to reflect where everything is at.
|
||||
cfg.load()
|
||||
except ValueError:
|
||||
log_error("Trying to parse percentage which failed for %s" %
|
||||
line_str)
|
||||
|
Loading…
Reference in New Issue
Block a user