]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Getting ready for 2.0 release...
authorNeil Brown <neilb@suse.de>
Fri, 26 Aug 2005 02:26:37 +0000 (02:26 +0000)
committerNeil Brown <neilb@suse.de>
Fri, 26 Aug 2005 02:26:37 +0000 (02:26 +0000)
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
13 files changed:
ANNOUNCE-2.0 [new file with mode: 0644]
Makefile
ReadMe.c
bitmap.c
inventory
makedist
mdadm.8
mdadm.spec
super1.c
swap_super.c
tests/02r1grow
tests/02r5grow
tests/02r6grow

diff --git a/ANNOUNCE-2.0 b/ANNOUNCE-2.0
new file mode 100644 (file)
index 0000000..2200fe7
--- /dev/null
@@ -0,0 +1,38 @@
+Subject:  ANNOUNCE: mdadm 2.0 - A tool for managing Soft RAID under Linux
+
+I am (at last) please to announce the availability of
+   mdadm version 2.0
+
+It is available at the usual places:
+   http://www.cse.unsw.edu.au/~neilb/source/mdadm/
+and
+   http://www.{countrycode}.kernel.org/pub/linux/utils/raid/mdadm/
+
+mdadm is a tool for creating, managing and monitoring
+device arrays using the "md" driver in Linux, also
+known as Software RAID arrays.
+
+Release 2.0 contains a substantial rewrite of various pieces of
+functionality, particularly the --create option.  This enables support
+for a new style of superblock - the version-1 superblock.
+Version-1 can support many more than 28 devices and can be easily
+moved between hosts with different endian-ness.
+Release 2.0 also contains support for the recent bitmap-intent-logging
+which will appear in 2.6.13, and the RAID1 write-behind that will be
+available in 2.6.14.
+
+This release comes with a test-suite which has been used to verify that
+mdadm-2.0 actually works in a number of common scenarios.  Some of the
+tests require a bleeding-edge kernel, so don't be surprised if some fail
+on kernels prior to 2.6.14.
+
+Being a '.0' release, 2.0 should be treated with some caution.
+However I believe it is quite stable and can safely be used on
+production systems.
+
+
+Development of mdadm has moved from CSE@UNSW and is now sponsored by
+ SUSE Labs, Novell Inc.
+
+NeilBrown  25th August 2005
+
index 2360bf2e9050c70857a88186ca83998a5a34961e..05b653bdaa471b57cb1ad97f75e979469d04cb58 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,8 @@ endif
 
 all : mdadm mdadm.man md.man mdadm.conf.man
 
-everything: all mdadm.static mdadm.tcc mdadm.uclibc  mdassemble mdassemble.uclibc mdassemble.static mdassemble.man
+everything: all mdadm.static mdadm.uclibc swap_super  mdassemble mdassemble.uclibc mdassemble.static mdassemble.man
+# mdadm.tcc doesn't work..
 
 mdadm : $(OBJS)
        $(CC) $(LDFLAGS) -o mdadm $^
@@ -130,7 +131,7 @@ install : mdadm mdadm.8 md.4 mdadm.conf.5
 
 clean : 
        rm -f mdadm $(OBJS) core *.man mdadm.tcc mdadm.uclibc mdadm.static *.orig *.porig *.rej *.alt \
-       mdassemble mdassemble.static mdassemble.uclibc mdassemble.klibc
+       mdassemble mdassemble.static mdassemble.uclibc mdassemble.klibc swap_super
 
 dist : clean
        ./makedist
index 5dd9874a0938d2882d523228619c437a81d43303..579de44b9140ac94dfe03883e1a97544f6588992 100644 (file)
--- a/ReadMe.c
+++ b/ReadMe.c
@@ -1,7 +1,7 @@
 /*
  * mdadm - manage Linux "md" devices aka RAID arrays.
  *
- * Copyright (C) 2001-2002 Neil Brown <neilb@cse.unsw.edu.au>
+ * Copyright (C) 2001-2005 Neil Brown <neilb@cse.unsw.edu.au>
  *
  *
  *    This program is free software; you can redistribute it and/or modify
@@ -29,7 +29,7 @@
 
 #include "mdadm.h"
 
-char Version[] = Name " - v2.0-devel-3 - DEVELOPMENT VERSION NOT FOR REGULAR USE - 4 August 2005\n";
+char Version[] = Name " - v2.0 - 25 August 2005\n";
 
 /*
  * File: ReadMe.c
index 36ecd958595c1a924f6851b9feb38836366f7eee..716572c025aff1eb4a1e7ea4e02031095198e660 100644 (file)
--- a/bitmap.c
+++ b/bitmap.c
@@ -152,11 +152,11 @@ bitmap_info_t *bitmap_fd_read(int fd, int brief)
         */
        total_bits = bitmap_bits(info->sb.sync_size, info->sb.chunksize);
 
-       while ((n = read(fd, buf, sizeof(*buf))) > 0) {
+       while ((n = read(fd, buf, sizeof(buf))) > 0) {
                unsigned long long remaining = total_bits - read_bits;
 
-               if (remaining > sizeof(*buf) * 8) /* we want the full buffer */
-                       remaining = sizeof(*buf) * 8;
+               if (remaining > sizeof(buf) * 8) /* we want the full buffer */
+                       remaining = sizeof(buf) * 8;
                if (remaining > n * 8) /* the file is truncated */
                        remaining = n * 8;
                dirty_bits += count_dirty_bits(buf, remaining);
index 82de5f6c257a422b5a877834d051509abdd4c0c2..8ff998f6f5d0cf888e959a77763135d62fc7d930 100644 (file)
--- a/inventory
+++ b/inventory
@@ -12,6 +12,7 @@ ANNOUNCE-1.7.0
 ANNOUNCE-1.8.0
 ANNOUNCE-1.8.1
 ANNOUNCE-1.9.0
+ANNOUNCE-2.0
 ANNOUNCE-2.0-devel-1
 ANNOUNCE-2.0-devel-2
 ANNOUNCE-2.0-devel-3
@@ -56,9 +57,11 @@ misc/syslog-events
 raid5extend.c
 super0.c
 super1.c
+swap_super.c
 test
 tests/
 tests/00linear
+tests/00multipath
 tests/00raid0
 tests/00raid1
 tests/00raid10
@@ -73,11 +76,23 @@ tests/02r5grow
 tests/02r6grow
 tests/03r0assem
 tests/03r5assem
+tests/03r5assemV1
 tests/04r0update
 tests/04r1update
 tests/05r1-bitmapfile
+tests/05r1-grow-external
+tests/05r1-grow-internal
 tests/05r1-internalbitmap
+tests/05r1-internalbitmap-v1a
+tests/05r1-internalbitmap-v1b
+tests/05r1-internalbitmap-v1c
 tests/05r1-n3-bitmapfile
+tests/05r1-re-add
+tests/05r1-re-add-nosuper
+tests/06name
+tests/06r5swap
+tests/06sysfs
+tests/06wrmostly
 tests/ToTest
 tests/check
 tests/testdev
index 0a659ff7a330dee6edc572f80039086095b24216..efbe45928567166cabfdfef89220428b0385c43b 100755 (executable)
--- a/makedist
+++ b/makedist
@@ -44,18 +44,18 @@ then
   ls -l $target/$base
   if tar tzf $target/$base | sed 's,[^/]*/,,' | sort | diff -u inventory -
   then : correct files found
-  else echo "Extra files, or invertory is out-of-date"
+  else echo "Extra files, or inventory is out-of-date"
        rm $target/$base
        exit 1
   fi
-
+exit 1
   rpm -ta $target/$base
   find /home/neilb/src/RPM -name "*mdadm-$version-*" \
      -exec cp {} $target/RPM \;
-  #cp ANNOUNCE-$version $target/ANNOUNCE
-  #cp ChangeLog $target/ChangeLog
+  cp ANNOUNCE-$version $target/ANNOUNCE
+  cp ChangeLog $target/ChangeLog
   scp $target/$base master.kernel.org:/pub/linux/utils/raid/mdadm/mdadm-$version.tar.gz
-  #scp $target/ANNOUNCE $target/ChangeLog master.kernel.org:/pub/linux/utils/raid/mdadm/
+  scp $target/ANNOUNCE $target/ChangeLog master.kernel.org:/pub/linux/utils/raid/mdadm/
 else
   if [ ! -f $target/$base ] 
   then 
diff --git a/mdadm.8 b/mdadm.8
index e2e5598d1130727f4276124f86218ae37ddce607..780dbc81a4476e3283cf6906168f78a237731d0f 100644 (file)
--- a/mdadm.8
+++ b/mdadm.8
@@ -1,5 +1,5 @@
 .\" -*- nroff -*-
-.TH MDADM 8 "" v2.0-devel-3
+.TH MDADM 8 "" v2.0m
 .SH NAME
 mdadm \- manage MD devices
 .I aka
index 3291a51a80652e62dd1aa72e2ce95c2a2777db50..9224384b6675999195345d7a14eb1f2bf8f8b3b9 100644 (file)
@@ -1,6 +1,6 @@
 Summary:     mdadm is used for controlling Linux md devices (aka RAID arrays)
 Name:        mdadm
-Version:     2.0-devel-3
+Version:     2.0
 Release:     1
 Source:      http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-%{version}.tgz
 URL:         http://www.cse.unsw.edu.au/~neilb/source/mdadm/
index d4e4f761f4a1a6518c7619836f32f4529a0e683a..53de19bc54df7e60179338b2a709042e5e337941 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -895,8 +895,6 @@ static int add_internal_bitmap1(struct supertype *st, void *sbv, int chunk, int
        bms->sync_size = __cpu_to_le64(size);
        bms->write_behind = __cpu_to_le32(write_behind);
 
-
-
        return 1;
 }
 
index afcedf32c28fae74d8b6365fe2c3eac232e7283c..377a6da5ca5f738dfa3e6c03894caaef9c36a47e 100644 (file)
@@ -16,7 +16,9 @@
 
 #define MD_NEW_SIZE_SECTORS(x)         ((x & ~(MD_RESERVED_SECTORS - 1)) - MD_RESERVED_SECTORS)
 
-main(int argc, char *argv[])
+extern long long lseek64(int, long long, int);
+
+int main(int argc, char *argv[])
 {
        int fd, i;
        unsigned long size;
index e187b0ae2baf900e82b14dfaffe370bf769ecadf..3198052a34f1e27a5c1e91ff3da6ecfe6e9844f3 100644 (file)
@@ -27,7 +27,7 @@ testdev $md0 1 $[size/2] 1
 mdadm --grow $md0 --size max
 check resync
 check wait
-testdev $md0 1 $[size-1] 1
+testdev $md0 1 $[size-1-64] 1
 
 mdadm --grow $md0 --size $[size/2]
 check nosync
index 47bc83ebb92b60d75cb454e2f27ff61be44ec1f9..405129d7e70acd8586d3bd663f642f7b60bea91b 100644 (file)
@@ -27,7 +27,7 @@ testdev $md0 3 $[size/2] 128
 mdadm --grow $md0 --size max
 check resync
 check wait
-testdev $md0 3 $[size-1] 128
+testdev $md0 3 $[size-1-64] 128
 
 mdadm --grow $md0 --size $[size/2]
 check nosync
index 897f510c290ae513b6002cc0dd47b15df133523b..fc4d660bcd6c2ea1f2b975d60c4fbc6d4a2ee822 100644 (file)
@@ -27,7 +27,7 @@ testdev $md0 2 $[size/2] 128
 mdadm --grow $md0 --size max
 check resync
 check wait
-testdev $md0 2 $[size-1] 128
+testdev $md0 2 $[size-1-64] 128
 
 mdadm --grow $md0 --size $[size/2]
 check nosync