mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-28 03:27:58 +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
f467cd17a1
commit
b5f33faf9f
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.67 -
|
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_each_lv_in_vg() to use cmd_vg structure.
|
||||||
Update _process_one_vg() to work with cmd_vg structure.
|
Update _process_one_vg() to work with cmd_vg structure.
|
||||||
Add functions for read and release VGs list.
|
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)
|
(vg_is_clustered((lv)->vg) ? LCK_CLUSTER_VG : 0)
|
||||||
|
|
||||||
#define lock_lv_vol(cmd, lv, flags) \
|
#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_vg(cmd, vol) lock_vol(cmd, vol, LCK_VG_UNLOCK)
|
||||||
#define unlock_and_release_vg(cmd, vg, vol) \
|
#define unlock_and_release_vg(cmd, vg, vol) \
|
||||||
|
Loading…
Reference in New Issue
Block a user