wok rev 8344
lvm2: add patch to fix udevsync.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Feb 02 01:22:46 2011 +0000 (2011-02-02) |
parents | 31ba4f705fa2 |
children | 15ae0a387b69 |
files | lvm2/receipt lvm2/stuff/lvm2_hotfix_udevsync.patch |
line diff
1.1 --- a/lvm2/receipt Wed Feb 02 01:21:46 2011 +0000 1.2 +++ b/lvm2/receipt Wed Feb 02 01:22:46 2011 +0000 1.3 @@ -16,6 +16,7 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 + patch -Np1 -i ../stuff/lvm2_hotfix_udevsync.patch 1.8 ./configure \ 1.9 --prefix=/usr \ 1.10 --infodir=/usr/share/info \
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/lvm2/stuff/lvm2_hotfix_udevsync.patch Wed Feb 02 01:22:46 2011 +0000 2.3 @@ -0,0 +1,16 @@ 2.4 +--- a/lib/locking/locking.h 2.5 ++++ b/lib/locking/locking.h 2.6 +@@ -143,7 +143,12 @@ int check_lvm1_vg_inactive(struct cmd_context *cmd, const char *vgname); 2.7 + lock_vol(cmd, (lv)->lvid.s, flags | LCK_LV_CLUSTERED(lv)) : \ 2.8 + 0) 2.9 + 2.10 +-#define unlock_vg(cmd, vol) lock_vol(cmd, vol, LCK_VG_UNLOCK) 2.11 ++#define unlock_vg(cmd, vol) \ 2.12 ++ do {\ 2.13 ++ sync_local_dev_names(cmd); \ 2.14 ++ lock_vol(cmd, vol, LCK_VG_UNLOCK); \ 2.15 ++ } while (0) 2.16 ++ 2.17 + #define unlock_and_free_vg(cmd, vg, vol) \ 2.18 + do { \ 2.19 + unlock_vg(cmd, vol); \</pre>