mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-21 02:50:41 +03:00
Replicator: lock_lv_vol() finds missing VGs
Find and check for all needed VGs before calling lock_vol().
This commit is contained in:
parent
5257248ed9
commit
c1fe5092c3
@ -1,5 +1,6 @@
|
||||
Version 2.02.67 -
|
||||
===============================
|
||||
Check for missing VGs before taking lock_lv_vol (for Replicator).
|
||||
Update process_each_lv_in_vg() to use cmd_vg structure.
|
||||
Update _process_one_vg() to work with cmd_vg structure.
|
||||
Add functions for read and release VGs list.
|
||||
|
@ -130,7 +130,9 @@ int check_lvm1_vg_inactive(struct cmd_context *cmd, const char *vgname);
|
||||
(vg_is_clustered((lv)->vg) ? LCK_CLUSTER_VG : 0)
|
||||
|
||||
#define lock_lv_vol(cmd, lv, flags) \
|
||||
lock_vol(cmd, (lv)->lvid.s, flags | LCK_LV_CLUSTERED(lv))
|
||||
(find_replicator_vgs((lv)) ? \
|
||||
lock_vol(cmd, (lv)->lvid.s, flags | LCK_LV_CLUSTERED(lv)) : \
|
||||
0)
|
||||
|
||||
#define unlock_vg(cmd, vol) lock_vol(cmd, vol, LCK_VG_UNLOCK)
|
||||
#define unlock_and_release_vg(cmd, vg, vol) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user