Magellan Linux

Diff of /tags/udev-171-r1/udev-persistent-storage.rules.magellan

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 717 by niro, Mon Dec 22 20:31:37 2008 UTC revision 760 by niro, Fri Apr 24 14:19:13 2009 UTC
# Line 1  Line 1 
1  # /etc/udev/rules/65-persistent-storage.rules:  device naming rules for udev  # /etc/udev/rules/65-persistent-storage.rules:  device naming rules for udev
2  # $Header: /root/magellan-cvs/src/udev/udev-persistent-storage.rules.magellan,v 1.5 2008-12-22 20:31:37 niro Exp $  # $Header: /root/magellan-cvs/src/udev/udev-persistent-storage.rules.magellan,v 1.6 2009-04-24 14:19:13 niro Exp $
3  #  #
4  # There are a number of modifiers that are allowed to be used in some  # There are a number of modifiers that are allowed to be used in some
5  # of the different fields. They provide the following subsitutions:  # of the different fields. They provide the following subsitutions:
# Line 28  ACTION!="add|change", GOTO="persistent_s Line 28  ACTION!="add|change", GOTO="persistent_s
28  SUBSYSTEM!="block", GOTO="persistent_storage_end"  SUBSYSTEM!="block", GOTO="persistent_storage_end"
29    
30  # skip rules for inappropriate block devices  # skip rules for inappropriate block devices
31  KERNEL=="ram*|loop*|fd*|nbd*|gnbd*|dm-*|md*|btibm*", GOTO="persistent_storage_end"  KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*", GOTO="persistent_storage_end"
32    
33  # never access non-cdrom removable ide devices, the drivers are causing event loops on open()  # never access non-cdrom removable ide devices, the drivers are causing event loops on open()
34  KERNEL=="hd*[!0-9]", ATTR{removable}=="1", DRIVERS=="ide-cs|ide-floppy", GOTO="persistent_storage_end"  KERNEL=="hd*[!0-9]", ATTR{removable}=="1", SUBSYSTEMS=="ide", ATTRS{media}=="disk|floppy", GOTO="persistent_storage_end"
35  KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GOTO="persistent_storage_end"  KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GOTO="persistent_storage_end"
36    
37  # ignore partitions that span the entire disk  # ignore partitions that span the entire disk
# Line 56  KERNEL=="sd*[!0-9]|sr*", ATTRS{ieee1394_ Line 56  KERNEL=="sd*[!0-9]|sr*", ATTRS{ieee1394_
56  KERNEL=="sd*[0-9]", ATTRS{ieee1394_id}=="?*", SYMLINK+="disk/by-id/ieee1394-$attr{ieee1394_id}-part%n"  KERNEL=="sd*[0-9]", ATTRS{ieee1394_id}=="?*", SYMLINK+="disk/by-id/ieee1394-$attr{ieee1394_id}-part%n"
57    
58  # libata compat (ata-* links, like old hd* devices did create)  # libata compat (ata-* links, like old hd* devices did create)
59  KERNEL=="sd*[!0-9]|sr*", ENV{ID_VENDOR}=="ATA", PROGRAM="ata_id $tempnode", RESULT=="?*", ENV{ID_ATA_COMPAT}="$result", SYMLINK+="disk/by-id/ata-$env{ID_ATA_COMPAT}"  KERNEL=="sd*[!0-9]", ENV{ID_VENDOR}=="ATA", PROGRAM="ata_id $tempnode", RESULT=="?*", ENV{ID_ATA_COMPAT}="$result", SYMLINK+="disk/by-id/ata-$env{ID_ATA_COMPAT}"
60  KERNEL=="sd*[0-9]", ENV{ID_ATA_COMPAT}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_ATA_COMPAT}-part%n"  KERNEL=="sd*[0-9]", ENV{ID_ATA_COMPAT}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_ATA_COMPAT}-part%n"
61    
62  KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ATTRS{name}=="?*", ATTRS{serial}=="?*", ENV{ID_NAME}="$attr{name}", ENV{ID_SERIAL}="$attr{serial}", SYMLINK+="disk/by-id/mmc-$env{ID_NAME}_$env{ID_SERIAL}"  KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ATTRS{name}=="?*", ATTRS{serial}=="?*", ENV{ID_NAME}="$attr{name}", ENV{ID_SERIAL}="$attr{serial}", SYMLINK+="disk/by-id/mmc-$env{ID_NAME}_$env{ID_SERIAL}"
# Line 78  KERNEL=="sr*", ENV{ID_CDROM_MEDIA_TRACK_ Line 78  KERNEL=="sr*", ENV{ID_CDROM_MEDIA_TRACK_
78  # probe filesystem metadata of disks  # probe filesystem metadata of disks
79  KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"  KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
80    
81    # watch for future changes
82    KERNEL!="sr*", OPTIONS+="watch"
83    
84  # by-label/by-uuid links (filesystem metadata)  # by-label/by-uuid links (filesystem metadata)
85  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|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
86  ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"  ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"

Legend:
Removed from v.717  
changed lines
  Added in v.760