wok diff lvm2/stuff/lvm2_hotfix_udevsync.patch @ rev 9509

Fixed lxpanel-extra.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Apr 06 07:57:02 2011 +0000 (2011-04-06)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lvm2/stuff/lvm2_hotfix_udevsync.patch	Wed Apr 06 07:57:02 2011 +0000
     1.3 @@ -0,0 +1,16 @@
     1.4 +--- a/lib/locking/locking.h
     1.5 ++++ b/lib/locking/locking.h
     1.6 +@@ -143,7 +143,12 @@ int check_lvm1_vg_inactive(struct cmd_context *cmd, const char *vgname);
     1.7 + 		lock_vol(cmd, (lv)-&gt;lvid.s, flags | LCK_LV_CLUSTERED(lv)) : \
     1.8 + 		0)
     1.9 + 
    1.10 +-#define unlock_vg(cmd, vol)	lock_vol(cmd, vol, LCK_VG_UNLOCK)
    1.11 ++#define unlock_vg(cmd, vol)	\
    1.12 ++	do {\
    1.13 ++		sync_local_dev_names(cmd); \
    1.14 ++		lock_vol(cmd, vol, LCK_VG_UNLOCK); \
    1.15 ++	} while (0)
    1.16 ++
    1.17 + #define unlock_and_free_vg(cmd, vg, vol) \
    1.18 + 	do { \
    1.19 + 		unlock_vg(cmd, vol); \</pre>