]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fix typo in new udev rule.
authorNeilBrown <neilb@suse.com>
Fri, 5 May 2017 05:16:15 +0000 (15:16 +1000)
committerJes Sorensen <jsorensen@fb.com>
Fri, 5 May 2017 15:07:00 +0000 (11:07 -0400)
As pointed out by Peter Rajnoha, the correct usage in udev is
TEST=="file", not TEST="file".

Also improve a related comment which was a bit informal.

Reported-by: Peter Rajnoha <prajnoha@redhat.com>
Fixes: cd6cbb08c458 ("Create: tell udev md device is not ready when first created.")
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
lib.c
udev-md-raid-creating.rules

diff --git a/lib.c b/lib.c
index 7e44b1f27fcc23e65f287d4fdacaa8f3ecc02c7c..be093e8c30cbf0f490d0e3b860f3b22fd66b13ab 100644 (file)
--- a/lib.c
+++ b/lib.c
@@ -165,7 +165,7 @@ char *fd2devnm(int fd)
 
 /* When we create a new array, we don't want the content to
  * be immediately examined by udev - it is probably meaningless.
- * So create /run/mdadm/creating-FOO and expect that a udev
+ * So create /run/mdadm/creating-mdXXX and expect that a udev
  * rule will noticed this and act accordingly.
  */
 static char block_path[] = "/run/mdadm/creating-%s";
index 2be466bcefd2f0107e7afff6158a8fd98236bed5..9bef8d1103f5a561228397a3f38dd77e92beba48 100644 (file)
@@ -4,4 +4,4 @@
 # the array is not "ready" and we should make sure the
 # content is ignored.
 
-KERNEL=="md*", TEST="/run/mdadm/creating-$kernel", ENV{SYSTEMD_READY}="0"
+KERNEL=="md*", TEST=="/run/mdadm/creating-$kernel", ENV{SYSTEMD_READY}="0"