diff options
author | Milan Broz <mbroz@redhat.com> | 2012-03-26 20:33:40 +0000 |
---|---|---|
committer | Milan Broz <mbroz@redhat.com> | 2012-03-26 20:33:40 +0000 |
commit | ddb31b62e5cdecd5b44176a5def6d1f0408a9e00 (patch) | |
tree | 93dfea97541b068575656088215b2813b2e39c8a /tools | |
parent | dcd90bc501677849ee50b430ea956be7392dffae (diff) | |
download | lvm2-ddb31b62e5cdecd5b44176a5def6d1f0408a9e00.tar.gz lvm2-ddb31b62e5cdecd5b44176a5def6d1f0408a9e00.tar.xz lvm2-ddb31b62e5cdecd5b44176a5def6d1f0408a9e00.zip |
Keep exclusive activation in pvmove if LV is already active.
Pvmove should never try to downgrade exclusive lock
for LVs.
This allows pvmove to work again for exclusive activated LVs.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pvmove.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c index 9b9fe590..2d0e2d68 100644 --- a/tools/pvmove.c +++ b/tools/pvmove.c @@ -296,7 +296,7 @@ static int _activate_lv(struct cmd_context *cmd, struct logical_volume *lv_mirr, { int r = 0; - if (exclusive) + if (exclusive || lv_is_active_exclusive(lv_mirr)) r = activate_lv_excl(cmd, lv_mirr); else r = activate_lv(cmd, lv_mirr); |