mdctl-v0.4.1 mdctl-v0.4.1
authorNeil Brown <neilb@suse.de>
Thu, 26 Jul 2001 09:39:46 +0000 (09:39 +0000)
committerNeil Brown <neilb@suse.de>
Thu, 26 Jul 2001 09:39:46 +0000 (09:39 +0000)
Create.c
ReadMe.c

index 37a027d..0f477bc 100644 (file)
--- a/Create.c
+++ b/Create.c
@@ -263,6 +263,16 @@ int Create(char *mddev, int mdfd,
            }
        }
 
+       /* hack */
+       if (level==4 || level==5) {
+               mdu_disk_info_t disk;
+               disk.number = raiddisks-1;
+               disk.raid_disk = disk.number;
+               disk.state = 1; /* faulty */
+               disk.major = disk.minor = 0;
+               ioctl(mdfd,ADD_NEW_DISK, &disk);
+       }
+
        /* param is not actually used */
        if (runstop == 1 || subdevs >= raiddisks) {
                mdu_param_t param;
index 7252c7c..c28b18b 100644 (file)
--- a/ReadMe.c
+++ b/ReadMe.c
@@ -29,7 +29,7 @@
 
 #include "mdctl.h"
 
-char Version[] = Name " - v0.4 - 26 July 2001\n";
+char Version[] = Name " - v0.4.1 - 26 July 2001\n";
 /*
  * File: ReadMe.c
  *