summaryrefslogtreecommitdiffstats
path: root/Create.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-08-26 06:08:28 +0000
committerNeil Brown <neilb@suse.de>2005-08-26 06:08:28 +0000
commit1bf4e2d962d0d7937bb24799aaa636edc6497fa4 (patch)
treebff99a373d7be1d0d7ccfd9d85998993a39c5cdf /Create.c
parent8431b2b2861d08b517468ae0f3ce2e3502d5ea94 (diff)
downloadmdadm-1bf4e2d962d0d7937bb24799aaa636edc6497fa4.tar.gz
mdadm-1bf4e2d962d0d7937bb24799aaa636edc6497fa4.tar.xz
mdadm-1bf4e2d962d0d7937bb24799aaa636edc6497fa4.zip
Passes all tests, nearly ready for release.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'Create.c')
-rw-r--r--Create.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Create.c b/Create.c
index d8fcdfe..34435d5 100644
--- a/Create.c
+++ b/Create.c
@@ -210,7 +210,7 @@ int Create(struct supertype *st, char *mddev, int mdfd,
ldsize = dsize;
ldsize <<= 9;
}
- freesize = st->ss->avail_size(st, ldsize >> 9, 64*2);
+ freesize = st->ss->avail_size(st, ldsize >> 9);
if (freesize == 0) {
fprintf(stderr, Name ": %s is too small: %luK\n",
dname, (unsigned long)(ldsize>>10));
@@ -356,7 +356,7 @@ int Create(struct supertype *st, char *mddev, int mdfd,
return 1;
}
if (!st->ss->add_internal_bitmap(st, super, bitmap_chunk, delay, write_behind,
- size ? size : maxsize)) {
+ &array.size, 1)) {
fprintf(stderr, Name ": Given bitmap chunk size not supported.\n");
return 1;
}
@@ -451,7 +451,7 @@ int Create(struct supertype *st, char *mddev, int mdfd,
break;
case 2:
if (disk.state == 1) break;
- st->ss->write_init_super(st, super, &disk, dv->devname, 64*2);
+ st->ss->write_init_super(st, super, &disk, dv->devname);
if (ioctl(mdfd, ADD_NEW_DISK, &disk)) {
fprintf(stderr, Name ": ADD_NEW_DISK for %s failed: %s\n",