From: NeilBrown Date: Fri, 5 May 2017 05:16:15 +0000 (+1000) Subject: Fix typo in new udev rule. X-Git-Tag: mdadm-4.1-rc1~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd180cb136d6b2193a58ea0de23b8a7942ca6f36;p=thirdparty%2Fmdadm.git Fix typo in new udev rule. 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 Fixes: cd6cbb08c458 ("Create: tell udev md device is not ready when first created.") Signed-off-by: NeilBrown Signed-off-by: Jes Sorensen --- diff --git a/lib.c b/lib.c index 7e44b1f2..be093e8c 100644 --- 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"; diff --git a/udev-md-raid-creating.rules b/udev-md-raid-creating.rules index 2be466bc..9bef8d11 100644 --- a/udev-md-raid-creating.rules +++ b/udev-md-raid-creating.rules @@ -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"