]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
rules: update persistent storage rules to use inotify watches
authorScott James Remnant <scott@ubuntu.com>
Wed, 11 Feb 2009 17:44:03 +0000 (17:44 +0000)
committerScott James Remnant <scott@ubuntu.com>
Wed, 11 Feb 2009 17:44:03 +0000 (17:44 +0000)
NEWS
rules/rules.d/60-persistent-storage.rules

diff --git a/NEWS b/NEWS
index 98f4937fa8086b43fc1ea9ddf991d388a61767ca..417069729267b7c0e391d64e7ad7e14e275e786a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ udev 138
 Device nodes can be watched for changes with inotify with OPTIONS="watch".  If
 closed after being opened for writing, a "change" uevent will occur.
 
+/dev/disk/by-*/* symlinks will be automatically updated.
+
 udev 137
 ========
 Bugfixes.
index abb9fce30bad5d5645476f3c66804444e0c9fc9e..8476f14ecf05ba4bfa0112549c8272997ef908b1 100644 (file)
@@ -57,8 +57,8 @@ ENV{DEVTYPE}=="disk", KERNEL!="sd*|sr*", ATTR{removable}=="1", GOTO="persistent_
 # probe filesystem metadata of optical drives which have a media inserted
 KERNEL=="sr*", ENV{ID_CDROM_MEDIA_TRACK_COUNT}=="?*", IMPORT{program}="vol_id --export --skip-raid --offset=$env{ID_CDROM_MEDIA_SESSION_LAST_OFFSET} $tempnode"
 
-# probe filesystem metadata of disks
-KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
+# probe filesystem metadata of disks, watch for future changes
+KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode", OPTIONS+="watch"
 
 # by-label/by-uuid links (filesystem metadata)
 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"