]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Create: print message when preparing a container.
authorNeilBrown <neilb@suse.de>
Fri, 28 Nov 2008 02:59:36 +0000 (13:59 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 28 Nov 2008 02:59:36 +0000 (13:59 +1100)
We currently print e.g. "Array /dev/md0 started", but nothing for
containers.
Fix that.

Signed-off-by: NeilBrown <neilb@suse.de>
Create.c

index 09df0b8843c7cd97d12744d5cb6ad73aeea468b1..f69cfd9a3e57bce429b041df4f8c0a6b752f3ef2 100644 (file)
--- a/Create.c
+++ b/Create.c
@@ -745,7 +745,8 @@ int Create(struct supertype *st, char *mddev,
                /* No need to start.  But we should signal udev to
                 * create links */
                sysfs_uevent(&info, "change");
-               ;
+               if (verbose >= 0)
+                       fprintf(stderr, Name ": container %s prepared.\n", mddev);
        } else if (runstop == 1 || subdevs >= raiddisks) {
                if (st->ss->external) {
                        switch(level) {