thirdparty/mdadm.git
14 years agoFix parsing of /dev/md/N in is_standard
Neil Brown [Tue, 14 Jun 2005 06:33:24 +0000 (06:33 +0000)] 
Fix parsing of /dev/md/N in is_standard

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoFix a few typecasts
Neil Brown [Tue, 14 Jun 2005 06:33:16 +0000 (06:33 +0000)] 
Fix a few typecasts

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoAllow --auto to still be meaningful when --scan is given
Neil Brown [Tue, 14 Jun 2005 06:33:02 +0000 (06:33 +0000)] 
Allow --auto to still be meaningful when --scan is given

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoInitialise mis.next to NULL
Neil Brown [Tue, 14 Jun 2005 06:32:52 +0000 (06:32 +0000)] 
Initialise mis.next to NULL

Probably not needed, but safer.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoFix typo in --grow --help - don't claim '-F'
Neil Brown [Tue, 14 Jun 2005 06:32:42 +0000 (06:32 +0000)] 
Fix typo in --grow --help - don't claim '-F'

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoMake type of uuid always int[], rather than sometimes __u32[]
Neil Brown [Tue, 14 Jun 2005 06:32:34 +0000 (06:32 +0000)] 
Make type of uuid always int[], rather than sometimes __u32[]

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoRetry --stop --scan until all stoppable devices have been stopped
Neil Brown [Tue, 14 Jun 2005 06:32:18 +0000 (06:32 +0000)] 
Retry --stop --scan until all stoppable devices have been stopped

This is needed to reliably stop stacked arrays

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoDocument SparesMissing and DeviceDisappeared/WrongLevel
Neil Brown [Tue, 14 Jun 2005 06:31:34 +0000 (06:31 +0000)] 
Document SparesMissing and DeviceDisappeared/WrongLevel

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoDocument --size=max option for --grow
Neil Brown [Tue, 14 Jun 2005 06:31:19 +0000 (06:31 +0000)] 
Document --size=max option for --grow

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoAvoid using lstat, it isn't right.
Neil Brown [Tue, 14 Jun 2005 06:30:03 +0000 (06:30 +0000)] 
Avoid using lstat, it isn't right.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoFrom paul.clements@steeleye.com Thu May 19 11:09:55 2005
Neil Brown [Tue, 14 Jun 2005 06:29:20 +0000 (06:29 +0000)] 
From paul.clements@steeleye.com Thu May 19 11:09:55 2005
X-VM-v5-Data: ([nil nil nil nil t nil nil nil nil]
["2589" "Wednesday" "18" "May" "2005" "21:09:47" "-0400" "Paul Clements" "paul.clements@steeleye.com" nil "93" "[PATCH 1/1] mdadm 2.0 devel: fix bitmap size calculation and allow \"missing\" device in Build command" "^From:" "neilb@cse.unsw.edu.au" "neilb@cse.unsw.edu.au" "5" nil nil nil nil nil nil nil nil nil]
nil)
Return-Path: <paul.clements@steeleye.com>
Received: From
smtp-dist.unsw.edu.au ([149.171.97.16] == smtp-dist-01.services.comms.unsw.EDU.AU)
(for <neilb@cse.unsw.edu.au>) By note With Smtp ;
Thu, 19 May 2005 11:09:55 +1000
Received: from localhost (avspam-03.services.comms.unsw.edu.au [149.171.100.18])
by smtp-dist.unsw.edu.au (8.13.1/8.13.1) with ESMTP id j4J19t05017496
for <VRT+EFNJ=JQ=cse.unsw.edu.au=neilb@cse.unsw.edu.au>; Thu, 19 May 2005 11:09:55 +1000 (EST)
Received: from note.orchestra.cse.unsw.EDU.AU (note.orchestra.cse.unsw.EDU.AU [129.94.242.24])
by smtp.unsw.edu.au (8.13.1/8.13.1) with ESMTP id j4J19qEL010258
for <VRT+EFNJ=JQ=cse.unsw.edu.au=neilb@cse.unsw.edu.au>; Thu, 19 May 2005 11:09:53 +1000 (EST)
Received: From hancock.sc.steeleye.com ([209.192.50.48] == stat16.steeleye.com)
(for <neilb@cse.unsw.edu.au>) By note With Smtp ;
Thu, 19 May 2005 11:09:52 +1000
Received: from steeleye.com (clements.sc.steeleye.com [172.17.6.4])
by hancock.sc.steeleye.com (8.11.6/8.11.6) with ESMTP id j4J19lA29968
for <neilb@cse.unsw.edu.au>; Wed, 18 May 2005 21:09:48 -0400
Message-ID: <428BE75B.20803@steeleye.com>
User-Agent: Mozilla Thunderbird 0.5 (X11/20040208)
X-Accept-Language: en-us, en
MIME-Version: 1.0
References: <428A496D.6000303@steeleye.com>
In-Reply-To: <428A496D.6000303@steeleye.com>
From: Paul Clements <paul.clements@steeleye.com>
To: neilb@cse.unsw.edu.au
Subject: [PATCH 1/1] mdadm 2.0 devel: fix bitmap size calculation and allow
 "missing" device in Build command
Date: Wed, 18 May 2005 21:09:47 -0400
Content-Type: multipart/mixed;
 boundary="------------090601020206040308050709"

This is a multi-part message in MIME format.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
13 years agoStuff
Neil Brown [Mon, 17 Apr 2006 23:42:52 +0000 (23:42 +0000)] 
Stuff

Description...

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
13 years agoStuff mdadm-2.0-devel-1
Neil Brown [Mon, 17 Apr 2006 23:42:52 +0000 (23:42 +0000)] 
Stuff

Description...

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoMake '-x nnn' spares work for type-1 superblocks.
Neil Brown [Tue, 7 Jun 2005 23:03:45 +0000 (23:03 +0000)] 
Make '-x nnn' spares work for type-1 superblocks.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoMove the test for validity of raid_disk later.
Neil Brown [Tue, 7 Jun 2005 23:03:45 +0000 (23:03 +0000)] 
Move the test for validity of raid_disk later.

This allows the check to be done after we know what
metadata format is being used, and so the max number of raiddisks
is known.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoMake --zero-superblock work for version 1 superblocks.
Neil Brown [Tue, 7 Jun 2005 23:03:45 +0000 (23:03 +0000)] 
Make --zero-superblock work for version 1 superblocks.

This requires passing the supertype to store_super

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoFix type - MD_SB_CLEAN is a bit number, not a bitmask.
Neil Brown [Tue, 7 Jun 2005 23:03:46 +0000 (23:03 +0000)] 
Fix type - MD_SB_CLEAN is a bit number, not a bitmask.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoIncrease max-devs on type-1 superblocks
Neil Brown [Tue, 7 Jun 2005 23:03:46 +0000 (23:03 +0000)] 
Increase max-devs on type-1 superblocks

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoAssorted fixes for bitmap related stuff
Neil Brown [Tue, 7 Jun 2005 23:03:46 +0000 (23:03 +0000)] 
Assorted fixes for bitmap related stuff

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoSupport --grow --bitmap=internal
Neil Brown [Tue, 7 Jun 2005 23:03:46 +0000 (23:03 +0000)] 
Support --grow --bitmap=internal

Adding a filebased bitmap is not yet supported, and
this code is still under development.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoAdd support for internal bitmaps
Neil Brown [Tue, 7 Jun 2005 23:03:47 +0000 (23:03 +0000)] 
Add support for internal bitmaps

For version 0.90 superblocks, an internal bitmap can be specified at create.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years ago2.0-devel-1 release
Neil Brown [Tue, 7 Jun 2005 23:03:47 +0000 (23:03 +0000)] 
2.0-devel-1 release

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoFix a test that will allow arrays with bitmaps to be assembled.
Neil Brown [Tue, 7 Jun 2005 23:03:47 +0000 (23:03 +0000)] 
Fix a test that will allow arrays with bitmaps to be assembled.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoMake sure to seed the random number generator for uuids
Neil Brown [Tue, 7 Jun 2005 23:03:48 +0000 (23:03 +0000)] 
Make sure to seed the random number generator for uuids

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoUse ADD_NEW_DISK to hot-add to non-version-0 arrays
Neil Brown [Tue, 7 Jun 2005 23:16:32 +0000 (23:16 +0000)] 
Use ADD_NEW_DISK to hot-add to non-version-0 arrays

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoFix create bug which initialised superblocks wrongly.
Neil Brown [Tue, 7 Jun 2005 23:16:35 +0000 (23:16 +0000)] 
Fix create bug which initialised superblocks wrongly.

Description...

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoInitial bitmap support
Neil Brown [Tue, 7 Jun 2005 23:16:35 +0000 (23:16 +0000)] 
Initial bitmap support

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoChange "dirty" status to "active"
Neil Brown [Tue, 7 Jun 2005 23:16:36 +0000 (23:16 +0000)] 
Change "dirty" status to "active"

Description...

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoWasn't initialising spare disks on create.
Neil Brown [Tue, 7 Jun 2005 23:16:36 +0000 (23:16 +0000)] 
Wasn't initialising spare disks on create.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoA couple off minor fixed in multi-format management.
Neil Brown [Tue, 7 Jun 2005 23:16:36 +0000 (23:16 +0000)] 
A couple off minor fixed in multi-format management.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoRelease 1.8.1 after some man page updates and other fixes. mdadm-1.11.1
Neil Brown [Tue, 7 Jun 2005 23:16:36 +0000 (23:16 +0000)] 
Release 1.8.1 after some man page updates and other fixes.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
13 years agoOnly in mdadm-inter/: ANNOUNCE-2.0-devel-1
Neil Brown [Mon, 17 Apr 2006 11:59:45 +0000 (11:59 +0000)] 
Only in mdadm-inter/: ANNOUNCE-2.0-devel-1
Only in mdadm-inter/: ANNOUNCE-2.0-devel-2
Only in mdadm-inter/: Create.c.orig
Only in mdadm-inter/: bitmap.c
Only in mdadm-inter/: bitmap.h
Only in mdadm-inter/: mdassemble.8
Only in mdadm-inter/: mkd1
diff -ru mdadm-pre/mdadm-1.11.0/super1.c mdadm-inter/super1.c
Signed-off-by: Neil Brown <neilb@suse.de>
14 years agosuper1
Neil Brown [Tue, 3 May 2005 23:44:40 +0000 (23:44 +0000)] 
super1

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Fix raid5 creation with new code.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoAdd a 'super-switch' so that different format superblocks can be used.
Neil Brown [Tue, 3 May 2005 23:44:32 +0000 (23:44 +0000)] 
Add a 'super-switch' so that different format superblocks can be used.

This includes:
  adding --metadata= option to choose metadata format
  adding metadata= word to config file.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoSeparate sueprblock handling into separate file
Neil Brown [Tue, 3 May 2005 23:44:18 +0000 (23:44 +0000)] 
Separate sueprblock handling into separate file

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoRelease 1.11.0 mdadm-1.11.0
Neil Brown [Tue, 3 May 2005 23:42:53 +0000 (23:42 +0000)] 
Release 1.11.0

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoFix embarassing bug in 1.10.0 which broke --add
Neil Brown [Mon, 11 Apr 2005 00:20:03 +0000 (00:20 +0000)] 
Fix embarassing bug in 1.10.0 which broke --add

Use a different variable to old result of open

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoRelease 1.10.0 mdadm-1.10.0
Neil Brown [Mon, 11 Apr 2005 00:08:05 +0000 (00:08 +0000)] 
Release 1.10.0

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoCall 'flush' after writing a superblock to disk.
Neil Brown [Mon, 4 Apr 2005 06:05:07 +0000 (06:05 +0000)] 
Call 'flush' after writing a superblock to disk.

Just in case...

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoUse O_EXCL when opening component devices to be assembled into an array
Neil Brown [Mon, 4 Apr 2005 06:02:49 +0000 (06:02 +0000)] 
Use O_EXCL when opening component devices to be assembled into an array

In 2.6, this will fail if the device is already in use, so we can detect this error
more easily.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoFix "--config=partitions" which was broken.
Neil Brown [Mon, 4 Apr 2005 05:44:43 +0000 (05:44 +0000)] 
Fix "--config=partitions" which was broken.

"devline" wants a list of words, not a whole line...

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
15 years agoAdd ANNOUNCE-1.8.1 mdadm-1.9.0
Neil Brown [Fri, 5 Nov 2004 03:04:44 +0000 (03:04 +0000)] 
Add ANNOUNCE-1.8.1

14 years agoRelease 1.9.0
Neil Brown [Mon, 4 Apr 2005 05:19:07 +0000 (05:19 +0000)] 
Release 1.9.0

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoChange handling of devices names in args
Neil Brown [Mon, 4 Apr 2005 05:18:57 +0000 (05:18 +0000)] 
Change handling of devices names in args

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoFix uninitialised variable compile warning.
Neil Brown [Mon, 4 Apr 2005 05:16:31 +0000 (05:16 +0000)] 
Fix uninitialised variable compile warning.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoImprove error message when mode is set twice.
Neil Brown [Mon, 4 Apr 2005 05:16:29 +0000 (05:16 +0000)] 
Improve error message when mode is set twice.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoCorrect error message printed when the 'chosen_drive' cannot be added.
Neil Brown [Mon, 4 Apr 2005 05:16:26 +0000 (05:16 +0000)] 
Correct error message printed when the 'chosen_drive' cannot be added.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoReverse order of arrays when --stop --scan
Neil Brown [Mon, 4 Apr 2005 05:16:24 +0000 (05:16 +0000)] 
Reverse order of arrays  when --stop --scan

so that stacked arrays are stopped properly.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoReread partitions file for each array being assembled.
Neil Brown [Mon, 4 Apr 2005 05:16:22 +0000 (05:16 +0000)] 
Reread partitions file for each array being assembled.

This makes assembling arrays from other arrays work better.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoAdd some missing closes of mdfd
Neil Brown [Mon, 4 Apr 2005 05:16:18 +0000 (05:16 +0000)] 
Add some missing closes of mdfd

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoDocument new --auto behaviour
Neil Brown [Mon, 4 Apr 2005 05:16:16 +0000 (05:16 +0000)] 
Document new --auto behaviour

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoChange MAJOR() etc to major() etc
Neil Brown [Mon, 4 Apr 2005 05:16:13 +0000 (05:16 +0000)] 
Change MAJOR() etc to major() etc

This allows for larger device number if glibc supports
it (requires 2.3.3).
Also fail before creating larger device number if glibc
support isn't present.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoWhen assembling with --auto, honour common device names
Neil Brown [Mon, 4 Apr 2005 05:16:10 +0000 (05:16 +0000)] 
When assembling with --auto, honour common device names

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoChange "dirty" to "active" in array status
Neil Brown [Mon, 4 Apr 2005 05:16:07 +0000 (05:16 +0000)] 
Change "dirty" to "active" in array status

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoFix some initialisations of ident
Neil Brown [Mon, 4 Apr 2005 05:16:04 +0000 (05:16 +0000)] 
Fix some initialisations of ident

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoFix manpage typo
Neil Brown [Mon, 4 Apr 2005 05:16:02 +0000 (05:16 +0000)] 
Fix manpage typo

Thanks : Jérôme Petazzoni <jp@enix.org>

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoFix rpmbuild error
Neil Brown [Mon, 4 Apr 2005 05:15:59 +0000 (05:15 +0000)] 
Fix rpmbuild error

reported by  Stephan van Hienen <raid@a2000.nu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
14 years agoSmall fix for makedist script
Neil Brown [Mon, 4 Apr 2005 05:15:55 +0000 (05:15 +0000)] 
Small fix for makedist script

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
15 years agomdadm-1.8.0 mdadm-1.8.0
Neil Brown [Mon, 1 Nov 2004 04:49:34 +0000 (04:49 +0000)] 
mdadm-1.8.0

15 years agomdadm-1.7.0 mdadm-1.7.0
Neil Brown [Wed, 11 Aug 2004 02:16:01 +0000 (02:16 +0000)] 
mdadm-1.7.0

15 years agomdadm-1.6.0 mdadm-1.6.0
Neil Brown [Fri, 4 Jun 2004 12:03:19 +0000 (12:03 +0000)] 
mdadm-1.6.0

16 years agomdadm-1.5.0 mdadm-1.5.0
Neil Brown [Thu, 22 Jan 2004 02:10:29 +0000 (02:10 +0000)] 
mdadm-1.5.0

16 years agomdadm-1.4.0 mdadm-1.4.0
Neil Brown [Tue, 28 Oct 2003 23:20:01 +0000 (23:20 +0000)] 
mdadm-1.4.0

16 years agomdadm-1.3.0 mdadm-1.3.0
Neil Brown [Mon, 28 Jul 2003 23:59:00 +0000 (23:59 +0000)] 
mdadm-1.3.0

16 years agomdadm-1.2.0 mdadm-1.2.0
Neil Brown [Wed, 12 Mar 2003 22:24:39 +0000 (22:24 +0000)] 
mdadm-1.2.0

16 years agomdadm-1.1.0 mdadm-1.1.0
Neil Brown [Sun, 2 Mar 2003 23:11:38 +0000 (23:11 +0000)] 
mdadm-1.1.0

16 years agomdadm-1.0.9 mdadm-1.0.9
Neil Brown [Wed, 12 Feb 2003 00:17:26 +0000 (00:17 +0000)] 
mdadm-1.0.9

17 years agomdadm-1.0.1 mdadm-1.0.1
Neil Brown [Mon, 20 May 2002 11:17:18 +0000 (11:17 +0000)] 
mdadm-1.0.1

17 years agomdadm-1.0.0 mdadm-1.0.0
Neil Brown [Fri, 10 May 2002 04:06:19 +0000 (04:06 +0000)] 
mdadm-1.0.0

17 years agomdadm-0.8.2 mdadm-0.8.2
Neil Brown [Thu, 11 Apr 2002 01:36:14 +0000 (01:36 +0000)] 
mdadm-0.8.2

17 years agomdadm-0.8.1 mdadm-0.8.1
Neil Brown [Fri, 5 Apr 2002 22:00:28 +0000 (22:00 +0000)] 
mdadm-0.8.1

17 years agomdadm-0.8 mdadm-0.8
Neil Brown [Thu, 4 Apr 2002 01:58:32 +0000 (01:58 +0000)] 
mdadm-0.8

17 years agomdadm-0.7.2 mdadm-0.7.2
Neil Brown [Wed, 20 Mar 2002 22:39:50 +0000 (22:39 +0000)] 
mdadm-0.7.2

17 years agomdadm-0.7.1 mdadm-0.7.1
Neil Brown [Fri, 15 Mar 2002 05:21:36 +0000 (05:21 +0000)] 
mdadm-0.7.1

17 years agomdadm-0.7 mdadm-0.7
Neil Brown [Fri, 8 Mar 2002 00:03:52 +0000 (00:03 +0000)] 
mdadm-0.7

17 years agomdctl-0.6 mdctl-0.6
Neil Brown [Wed, 6 Mar 2002 23:17:40 +0000 (23:17 +0000)] 
mdctl-0.6

18 years agomdctl-0.5 mdctl-0.5
Neil Brown [Thu, 23 Aug 2001 02:33:20 +0000 (02:33 +0000)] 
mdctl-0.5

18 years agomdctl-v0.4.2 mdctl-v0.4.2
Neil Brown [Thu, 26 Jul 2001 20:47:22 +0000 (20:47 +0000)] 
mdctl-v0.4.2

18 years agomdctl-v0.4.1 mdctl-v0.4.1
Neil Brown [Thu, 26 Jul 2001 09:39:46 +0000 (09:39 +0000)] 
mdctl-v0.4.1

18 years agomdctl-v0.4 mdctl-v0.4
Neil Brown [Thu, 26 Jul 2001 07:00:09 +0000 (07:00 +0000)] 
mdctl-v0.4

18 years agomdctl-v0.3 mdctl-v0.3
Neil Brown [Thu, 14 Jun 2001 05:33:53 +0000 (05:33 +0000)] 
mdctl-v0.3

18 years agomdctl-v0.2 mdctl-v0.2
Neil Brown [Fri, 8 Jun 2001 02:36:23 +0000 (02:36 +0000)] 
mdctl-v0.2