diff options
author | Scott James Remnant <scott@ubuntu.com> | 2009-02-11 17:44:03 +0000 |
---|---|---|
committer | Scott James Remnant <scott@ubuntu.com> | 2009-02-11 17:44:03 +0000 |
commit | f24036d63b0aee735c3098d09b9e0ed450e93177 (patch) | |
tree | 4408a9641bba884a5716b8b6d40e6313037140e7 /rules/rules.d/60-persistent-storage.rules | |
parent | bd284db142c1d3fb6e2a709678c8828c12c52466 (diff) |
rules: update persistent storage rules to use inotify watches
Diffstat (limited to 'rules/rules.d/60-persistent-storage.rules')
-rw-r--r-- | rules/rules.d/60-persistent-storage.rules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/rules.d/60-persistent-storage.rules b/rules/rules.d/60-persistent-storage.rules index abb9fce30b..8476f14ecf 100644 --- a/rules/rules.d/60-persistent-storage.rules +++ b/rules/rules.d/60-persistent-storage.rules @@ -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}" |