From: Xiao Ni Date: Tue, 3 Jun 2025 00:49:29 +0000 (+0800) Subject: mdadm/assemble: Don't stop array after creating it X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea4cdaea1a553685444a3fb39aae6b2cfee387ef;p=thirdparty%2Fmdadm.git mdadm/assemble: Don't stop array after creating it It stops the array which is just created. From the comment it wants to stop the array if it has no content. But it hasn't added member disks, so it's a clean array. It's meaningless to do it. Signed-off-by: Xiao Ni --- diff --git a/Assemble.c b/Assemble.c index f8099cd3..1949bf96 100644 --- a/Assemble.c +++ b/Assemble.c @@ -1570,8 +1570,6 @@ try_again: goto try_again; goto out; } - /* just incase it was started but has no content */ - ioctl(mdfd, STOP_ARRAY, NULL); } if (content != &info) {