dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/Fix-typo2-in-new-udev-rule.patch

2c1b57
From dd180cb136d6b2193a58ea0de23b8a7942ca6f36 Mon Sep 17 00:00:00 2001
2c1b57
From: NeilBrown <neilb@suse.com>
2c1b57
Date: Fri, 5 May 2017 15:16:15 +1000
2c1b57
Subject: [RHEL7.5 PATCH 111/169] Fix typo in new udev rule.
2c1b57
2c1b57
As pointed out by Peter Rajnoha, the correct usage in udev is
2c1b57
TEST=="file", not TEST="file".
2c1b57
2c1b57
Also improve a related comment which was a bit informal.
2c1b57
2c1b57
Reported-by: Peter Rajnoha <prajnoha@redhat.com>
2c1b57
Fixes: cd6cbb08c458 ("Create: tell udev md device is not ready when first created.")
2c1b57
Signed-off-by: NeilBrown <neilb@suse.com>
2c1b57
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
2c1b57
---
2c1b57
 lib.c                       | 2 +-
2c1b57
 udev-md-raid-creating.rules | 2 +-
2c1b57
 2 files changed, 2 insertions(+), 2 deletions(-)
2c1b57
2c1b57
diff --git a/lib.c b/lib.c
2c1b57
index 7e44b1f..be093e8 100644
2c1b57
--- a/lib.c
2c1b57
+++ b/lib.c
2c1b57
@@ -165,7 +165,7 @@ char *fd2devnm(int fd)
2c1b57
 
2c1b57
 /* When we create a new array, we don't want the content to
2c1b57
  * be immediately examined by udev - it is probably meaningless.
2c1b57
- * So create /run/mdadm/creating-FOO and expect that a udev
2c1b57
+ * So create /run/mdadm/creating-mdXXX and expect that a udev
2c1b57
  * rule will noticed this and act accordingly.
2c1b57
  */
2c1b57
 static char block_path[] = "/run/mdadm/creating-%s";
2c1b57
diff --git a/udev-md-raid-creating.rules b/udev-md-raid-creating.rules
2c1b57
index 2be466b..9bef8d1 100644
2c1b57
--- a/udev-md-raid-creating.rules
2c1b57
+++ b/udev-md-raid-creating.rules
2c1b57
@@ -4,4 +4,4 @@
2c1b57
 # the array is not "ready" and we should make sure the
2c1b57
 # content is ignored.
2c1b57
 
2c1b57
-KERNEL=="md*", TEST="/run/mdadm/creating-$kernel", ENV{SYSTEMD_READY}="0"
2c1b57
+KERNEL=="md*", TEST=="/run/mdadm/creating-$kernel", ENV{SYSTEMD_READY}="0"
2c1b57
-- 
2c1b57
2.7.4
2c1b57