Magellan Linux

Diff of /trunk/udev/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 823 by niro, Sat May 23 22:35:53 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.7 2009-05-23 22:35:53 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 73  ENV{DEVTYPE}=="partition", ENV{ID_PATH}= Line 73  ENV{DEVTYPE}=="partition", ENV{ID_PATH}=
73  ENV{DEVTYPE}=="disk", KERNEL!="sd*|sr*", ATTR{removable}=="1", GOTO="persistent_storage_end"  ENV{DEVTYPE}=="disk", KERNEL!="sd*|sr*", ATTR{removable}=="1", GOTO="persistent_storage_end"
74    
75  # probe filesystem metadata of optical drives which have a media inserted  # probe filesystem metadata of optical drives which have a media inserted
76  KERNEL=="sr*", ENV{ID_CDROM_MEDIA_TRACK_COUNT}=="?*", IMPORT{program}="vol_id --export --skip-raid --offset=$env{ID_CDROM_MEDIA_SESSION_LAST_OFFSET} $tempnode"  KERNEL=="sr*", ENV{ID_CDROM_MEDIA}=="?*", IMPORT{program}="/sbin/blkid -o udev -p -u noraid -O $env{ID_CDROM_MEDIA_SESSION_LAST_OFFSET} $tempnode"
77    
78  # probe filesystem metadata of disks  # probe filesystem metadata of disks
79  KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"  KERNEL!="sr*", IMPORT{program}="/sbin/blkid -o udev -p $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}"

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