From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Date: Thu, 05 Feb 2009 07:43:15 +0000 Subject: MD removal and condition code bug Message-Id: <498A9893.5090505@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Radek Vykydal encountered a problem with md devices. If the raid is about to be removed a "change" and "remove" event is sent. The "change" event has to be skipped if ATTR{md/array_state} is empty, but somehow the condition does not match, which might point to a bug in the condition code. The following patch is needed: < ATTR{md/array_state}="|clear|inactive", GOTO="md_end" --- > ATTR{md/array_state}="clear|inactive", GOTO="md_end" > ATTR(md/array_state}!="?*", GOTO="md_end"