]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdadm/assemble: Don't stop array after creating it
authorXiao Ni <xni@redhat.com>
Tue, 3 Jun 2025 00:49:29 +0000 (08:49 +0800)
committerXiaoNi87 <xni@redhat.com>
Wed, 4 Jun 2025 03:23:18 +0000 (11:23 +0800)
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 <xni@redhat.com>
Assemble.c

index f8099cd32aa3f718d3ab7a091ca30ab38e065d48..1949bf96c478a3d57ad07a692b7f04092b4a5d70 100644 (file)
@@ -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) {