- 64-md-raid.rules: avoid races with md devices

appearing and disappearing.
  If the 'array_state' file doesn't exist, that is equivalent
  to it having 'clear' in it. (bnc#641382)

OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=31
This commit is contained in:
Neil Brown 2011-02-17 00:28:50 +00:00 committed by Git OBS Bridge
parent 14f5949af3
commit 2924b9a9ae
2 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,8 @@ ENV{ID_FS_TYPE}=="linux_raid_member", PROGRAM="/bin/grep -qs '^AUTO -all' /etc/m
# import data from a raid set
KERNEL!="md*", GOTO="md_end"
#this extra caution avoids some races with the device disappearing
TEST!="md/array_state", GOTO="md_end"
# container devices have a metadata version of e.g. 'external:ddf' and
# never leave state 'inactive'
ATTR{md/metadata_version}=="external:[A-Za-z]*", ATTR{md/array_state}=="inactive", GOTO="md_ignore_state"

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Feb 17 00:27:02 UTC 2011 - nfbrown@novell.com
- 64-md-raid.rules: avoid races with md devices
appearing and disappearing.
If the 'array_state' file doesn't exist, that is equivalent
to it having 'clear' in it. (bnc#641382)
-------------------------------------------------------------------
Wed Nov 17 03:27:33 UTC 2010 - nfbrown@novell.com