~ubuntu-branches/ubuntu/quantal/lvm2/quantal

« back to all changes in this revision

Viewing changes to debian/tree/dmsetup/lib/udev/rules.d/60-persistent-storage-dm.rules

  • Committer: Steve Langasek
  • Date: 2012-04-14 02:57:53 UTC
  • mfrom: (3.1.22 sid)
  • Revision ID: steve.langasek@canonical.com-20120414025753-ejbdw9c8llik58y9
Merge version 2.02.88-2 from Debian testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Udev rules for device-mapper devices.
2
2
# See /usr/share/doc/dmsetup/README.udev for further information.
3
3
 
 
4
ACTION!="add|change", GOTO="persistent_storage_dm_end"
4
5
ENV{DM_UDEV_RULES}=="", GOTO="persistent_storage_dm_end"
 
6
ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}=="1", GOTO="persistent_storage_dm_end"
5
7
 
6
 
OPTIONS="link_priority=-100"
7
 
ENV{DM_UUID}=="DMRAID-*", OPTIONS="link_priority=100"
 
8
ENV{DM_UDEV_LOW_PRIORITY_FLAG}=="1", OPTIONS="link_priority=-100"
8
9
 
9
10
SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}"
10
11
ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}"
11
12
 
12
 
ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}!="", GOTO="persistent_storage_dm_end"
 
13
ENV{DM_SUSPENDED}=="1", GOTO="persistent_storage_dm_end"
13
14
 
14
15
OPTIONS+="watch"
15
16
IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
 
17
ENV{DM_UDEV_LOW_PRIORITY_FLAG}=="1", OPTIONS="link_priority=-100"
16
18
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
17
19
ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
18
20