public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW_DM udev/13-dm-disk.rules
@ 2012-02-16 14:39 prajnoha
  0 siblings, 0 replies; 2+ messages in thread
From: prajnoha @ 2012-02-16 14:39 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	prajnoha@sourceware.org	2012-02-16 14:39:03

Modified files:
	.              : WHATS_NEW_DM 
	udev           : 13-dm-disk.rules 

Log message:
	Switch to using built-in blkid in 13-dm-disk.rules.
	
	Available in udev since version 176.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.567&r2=1.568
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/udev/13-dm-disk.rules.diff?cvsroot=lvm2&r1=1.7&r2=1.8

--- LVM2/WHATS_NEW_DM	2012/02/15 14:50:33	1.567
+++ LVM2/WHATS_NEW_DM	2012/02/16 14:39:02	1.568
@@ -1,5 +1,6 @@
 Version 1.02.71 - 
 ====================================
+  Switch to using built-in blkid in 13-dm-disk.rules.
   Add "watch" rule to 13-dm-disk.rules.
   Detect failing fifo and skip 20s retry communication period.
   Add DM_DEFAULT_NAME_MANGLING_MODE env. variable to override configured value.
--- LVM2/udev/13-dm-disk.rules	2012/02/15 15:10:31	1.7
+++ LVM2/udev/13-dm-disk.rules	2012/02/16 14:39:02	1.8
@@ -19,7 +19,7 @@
 
 ENV{DM_SUSPENDED}=="1", GOTO="dm_end"
 
-IMPORT{program}="$env{DM_SBIN_PATH}/blkid -o udev -p $tempnode"
+IMPORT{program}="blkid"
 ENV{DM_UDEV_LOW_PRIORITY_FLAG}=="1", OPTIONS="link_priority=-100"
 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"


^ permalink raw reply	[flat|nested] 2+ messages in thread
* LVM2 ./WHATS_NEW_DM udev/13-dm-disk.rules
@ 2012-02-15 14:50 prajnoha
  0 siblings, 0 replies; 2+ messages in thread
From: prajnoha @ 2012-02-15 14:50 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	prajnoha@sourceware.org	2012-02-15 14:50:34

Modified files:
	.              : WHATS_NEW_DM 
	udev           : 13-dm-disk.rules 

Log message:
	Add watch rule to 13-dm-disk.rules.
	
	We don't have anything better yet...
	
	The problems the watch rule caused when removing devices should be covered
	now with the "retry remove" logic. It's also better to have this maintained
	by us, rather than having this rule anywhere else without proper control.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.566&r2=1.567
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/udev/13-dm-disk.rules.diff?cvsroot=lvm2&r1=1.5&r2=1.6

--- LVM2/WHATS_NEW_DM	2012/02/15 13:56:47	1.566
+++ LVM2/WHATS_NEW_DM	2012/02/15 14:50:33	1.567
@@ -1,5 +1,6 @@
 Version 1.02.71 - 
 ====================================
+  Add "watch" rule to 13-dm-disk.rules.
   Detect failing fifo and skip 20s retry communication period.
   Add DM_DEFAULT_NAME_MANGLING_MODE env. variable to override configured value.
   Add dm_lib_init to automatically initialise device-mapper library on load.
--- LVM2/udev/13-dm-disk.rules	2009/11/13 12:33:27	1.5
+++ LVM2/udev/13-dm-disk.rules	2012/02/15 14:50:34	1.6
@@ -24,4 +24,15 @@
 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
 
+# Add inotify watch to track changes on this device.
+# Using the watch rule is not optimal - it generetes a lot of spurious
+# and useless events whenever the device opened for read-write is closed.
+# The best would be to generete the event directly in the tool changing
+# relevant information so only relevant events will be processed
+# (like creating a filesystem, changing filesystem label etc.).
+#
+# But let's use this until we have something better...
+
+OPTIONS+="watch"
+
 LABEL="dm_end"


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-16 14:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-16 14:39 LVM2 ./WHATS_NEW_DM udev/13-dm-disk.rules prajnoha
  -- strict thread matches above, loose matches on Subject: below --
2012-02-15 14:50 prajnoha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).