1
0
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:
Zdenek Kabelac 2010-05-21 14:29:49 +00:00
parent f467cd17a1
commit b5f33faf9f
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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) \