wok view lvm2/stuff/lvm2_hotfix_udevsync.patch @ rev 10348
gawk: Add BUILD_DEPENDS back so gawk will be build after gcc is with tazwok.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun May 22 15:20:47 2011 +0000 (2011-05-22) |
parents | |
children |
line source
1 --- a/lib/locking/locking.h
2 +++ b/lib/locking/locking.h
3 @@ -143,7 +143,12 @@ int check_lvm1_vg_inactive(struct cmd_context *cmd, const char *vgname);
4 lock_vol(cmd, (lv)->lvid.s, flags | LCK_LV_CLUSTERED(lv)) : \
5 0)
7 -#define unlock_vg(cmd, vol) lock_vol(cmd, vol, LCK_VG_UNLOCK)
8 +#define unlock_vg(cmd, vol) \
9 + do {\
10 + sync_local_dev_names(cmd); \
11 + lock_vol(cmd, vol, LCK_VG_UNLOCK); \
12 + } while (0)
13 +
14 #define unlock_and_free_vg(cmd, vg, vol) \
15 do { \
16 unlock_vg(cmd, vol); \</pre>