mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
rules: fix md "change"/"remove" handling
On Thu, Feb 5, 2009 at 08:43, Harald Hoyer <harald@redhat.com> wrote: > Radek Vykydal <rvykydal@redhat.com> encountered a problem with md devices. > If the raid is about to be removed a "change" and "remove" event is sent.
This commit is contained in:
parent
a402404fb2
commit
b822542608
@ -11,6 +11,7 @@ KERNEL!="md*", 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"
|
||||
TEST!="md/array_state", GOTO="md_end"
|
||||
ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
|
||||
LABEL="md_ignore_state"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user