From 4616f601e6482c8d88fd1050a6c02dce7fa24c76fb257356f148275b90d7a928 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Thu, 18 Nov 2010 15:17:07 +0000 Subject: [PATCH 1/2] Updating link to change in openSUSE:Factory/mdadm revision 50.0 OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=369c042e7b2676ea5768054f9aa1325e --- mdadm.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdadm.spec b/mdadm.spec index 6fd0252..c0d8c36 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -20,7 +20,7 @@ Name: mdadm Version: 3.1.4 -Release: 1 +Release: 2 BuildRequires: sgmltool PreReq: %fillup_prereq %insserv_prereq Obsoletes: raidtools From 328f1d8ab9198f1b45c97aeb84fc8a3486f784dd9a85af616c2c7ae4388b4d7f Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 17 Feb 2011 00:28:50 +0000 Subject: [PATCH 2/2] - 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 --- 64-md-raid.rules | 2 ++ mdadm.changes | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/64-md-raid.rules b/64-md-raid.rules index a2fe2d0..ce803de 100644 --- a/64-md-raid.rules +++ b/64-md-raid.rules @@ -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" diff --git a/mdadm.changes b/mdadm.changes index 55c6e57..4957460 100644 --- a/mdadm.changes +++ b/mdadm.changes @@ -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