LVM2 ./WHATS_NEW lib/activate/dev_manager.c li ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha at sourceware.org 2010-04-23 14:16:33
Modified files:
. : WHATS_NEW lib/activate : dev_manager.c lib/misc : lvm-string.c lvm-string.h tools : toollib.c
Log message:
Set appropriate udev flags for reserved LVs.
There's no need for foreign udev rules to touch LVM reserved devices (snapshot, pvmove, _mlog, _mimage, _vorigin) even if they happen to be visible. The same applies for /dev/disk content - no need to create any content for these devices (and so no need to run any "blkid" etc.). This also prevents setting any inotify "watch" from udev rules on such devices that is a source of race conditions (the rules need to honor DM_UDEV_DISABLE_OTHER_RULES_FLAG for this to work though).
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1535&r2=1.1536
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/activate/dev_manager.c.diff?cvsroot=lvm2&r1=1.186&r2=1.187
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/misc/lvm-string.c.diff?cvsroot=lvm2&r1=1.19&r2=1.20
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/misc/lvm-string.h.diff?cvsroot=lvm2&r1=1.19&r2=1.20
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/toollib.c.diff?cvsroot=lvm2&r1=1.194&r2=1.195
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.64 - ================================= + Set appropriate udev flags for reserved LVs. Don't preload the origin when removing a snapshot whose merge is pending. Disallow the addition of mirror images while a conversion is happening. Disallow primary mirror image removal when mirror is not in-sync.
lib/activate/dev_manager.c +47 -29
111 lines not on this page · raw message
lib/misc/lvm-string.c +46 -0
49 lines not on this page · raw message
lib/misc/lvm-string.h +3 -0
@@ -34,6 +34,9 @@int validate_name (const char *n); +int apply_lvname_restrictions (const char *name); +int is_reserved_lvname (const char *name); +/* * Returns number of occurrences of c in first len characters of str. */
tools/toollib.c +0 -46
52 lines not on this page · raw message