Magellan Linux

Diff of /trunk/udev/udev-md-raid.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/64-md-raid.rules:  device naming rules for udev  # /etc/udev/rules/64-md-raid.rules:  device naming rules for udev
2  # $Header: /root/magellan-cvs/src/udev/udev-md-raid.rules.magellan,v 1.3 2008-12-22 20:31:37 niro Exp $  # $Header: /root/magellan-cvs/src/udev/udev-md-raid.rules.magellan,v 1.4 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 26  ACTION!="add|change", GOTO="md_end" Line 26  ACTION!="add|change", GOTO="md_end"
26  # import data from a raid set  # import data from a raid set
27  KERNEL!="md*", GOTO="md_end"  KERNEL!="md*", GOTO="md_end"
28    
29    # partitions have no md/{array_state,metadata_version}
30    ENV{DEVTYPE}=="partition", GOTO="md_ignore_state"
31    
32  # container devices have a metadata version of e.g. 'external:ddf' and  # container devices have a metadata version of e.g. 'external:ddf' and
33  # never leave state 'inactive'  # never leave state 'inactive'
34  ATTR{md/metadata_version}=="external:[A-Za-z]*", ATTR{md/array_state}=="inactive", GOTO="md_ignore_state"  ATTR{md/metadata_version}=="external:[A-Za-z]*", ATTR{md/array_state}=="inactive", GOTO="md_ignore_state"
35    TEST!="md/array_state", GOTO="md_end"
36  ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"  ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
37  LABEL="md_ignore_state"  LABEL="md_ignore_state"
38    
# Line 43  ENV{DEVTYPE}=="partition", ENV{MD_DEVNAM Line 47  ENV{DEVTYPE}=="partition", ENV{MD_DEVNAM
47    
48  IMPORT{program}="vol_id --export $tempnode"  IMPORT{program}="vol_id --export $tempnode"
49  OPTIONS+="link_priority=100"  OPTIONS+="link_priority=100"
50    OPTIONS+="watch"
51  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}"
52  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}"
53    

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