~ubuntu-branches/ubuntu/jaunty/udev/jaunty-proposed

« back to all changes in this revision

Viewing changes to rules/rules.d/60-persistent-storage.rules

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2009-02-20 13:37:24 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20090220133724-8c3wrv9pviayz2pw
Tags: 138-1
* New upstream release:
  - Block device nodes watched with inotify for changes and
    /dev/disk/by-{uuid,label} updated automatically.
  - Loop devices now get persistent disk links too.

* Apply NAME rules when string_escape=none.  LP: #325690.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
SUBSYSTEM!="block", GOTO="persistent_storage_end"
11
11
 
12
12
# skip rules for inappropriate block devices
13
 
KERNEL=="ram*|loop*|fd*|nbd*|gnbd*|dm-*|md*|btibm*", GOTO="persistent_storage_end"
 
13
KERNEL=="ram*|fd*|nbd*|gnbd*|dm-*|md*|btibm*", GOTO="persistent_storage_end"
14
14
 
15
15
# never access non-cdrom removable ide devices, the drivers are causing event loops on open()
16
16
KERNEL=="hd*[!0-9]", ATTR{removable}=="1", DRIVERS=="ide-cs|ide-floppy", GOTO="persistent_storage_end"
60
60
# probe filesystem metadata of disks
61
61
KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
62
62
 
 
63
# watch for future changes
 
64
KERNEL!="sr*", OPTIONS+="watch"
 
65
 
63
66
# by-label/by-uuid links (filesystem metadata)
64
67
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
65
68
ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"