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: |
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 |
|
|
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 |
|
|