summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix autoassemble for stack arrays.Neil Brown2008-05-201-0/+23
| | | | | | | | If you have stacked arrays, then mdadm -As --homehost=fred should work but doesn't. It gets into an infinite loop! So write some tests, and fix the bugs.
* Don't try the auto-detect test when md_mod is a moduleNeil Brown2008-05-151-0/+7
| | | | ....as this cannot work.
* Enhance raid4 support: --assemble and --monitor wasn't quite happy with it.Doug Ledford2007-07-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | From: Doug Ledford <dledford@redhat.com> This one actually does a couple things. Mainly related to raid4, but kinda touches other raid levels some. When creating a raid4 array, treat it like a raid5 array in that we create it in degraded mode by default and add the last disk as a spare. Besides speeding things up, this has a second effect that it makes mdadm more consistent. In order to create a degraded raid5 array, you need only passing missing as one of the devices. For a degraded raid4 array, prior to this patch, you must pass assume-clean or else it refuses to create the array. Even force won't make it work without assume-clean. With the patch, raid4 behaves identical to raid5. Separate from that, the monitor functionality completely ignores raid4 arrays. That seems to stem from the code that checks to see if the array is part of a long list of types. It seems easier to check which array types *aren't* redundant instead of listing the ones that are redundant and missing some of them. This makes the monitor service actually watch raid4 arrays.
* Add --auto-detect for in-kernel autodetect.Neil Brown2007-05-211-0/+25
| | | | This is equivalent to raidautorun that some distros provide.
* Update tests and add linear-addNeil Brown2007-05-215-7/+29
| | | | | | Update the testing scripts to allow for new space calculations for space for bitmaps. Add a test script for adding devices to linear arrays.
* Fix handling of negative bitmap offsets on 64bit hosts.Neil Brown2007-05-212-0/+0
| | | | | The bitmap offset is a signed 32bit number, so casting to (long) isn't sufficient. We must cast to (int32_t).
* Fix and test --update=uuidNeil Brown2006-12-141-0/+82
| | | | A number of odd bugs here, but now we have a regression test as well.
* Make Assemble/Force work on raid6 with 2 missing devices.Neil Brown2006-12-141-0/+0
| | | | | | Previously it onl worked when one missing device. Also split the "force" update_super method into two and it is really serving two functions.
* Update test scripts for new blockdevNeil Brown2006-10-231-3/+3
| | | | --getsize64 seems to have disappeared.
* Fix up some internalbitmap testsNeil Brown2006-06-163-1/+4
|
* Release 2.5mdadm-2.5Neil Brown2006-05-262-0/+2
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Add tests/05r1-grow-internal-1Neil Brown2006-04-011-1/+0
|
* Add tests/05r1-grow-internal-1Neil Brown2006-03-291-1/+1
|
* Bug fixes to pass test suiteNeil Brown2006-03-292-3/+2
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Initial reshape supportNeil Brown2006-03-131-0/+38
| | | | | | Needs work for other levels etc. Signed-off-by: Neil Brown <neilb@suse.de>
* Some little bits and pieces...Neil Brown2006-02-022-3/+3
| | | | | | I'm obviously bored of writing changelog entries. Signed-off-by: Neil Brown <neilb@suse.de>
* Add tests/05r1-grow-internal-1Neil Brown2005-09-121-0/+32
|
* Refine some tests.Neil Brown2005-09-121-1/+2
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Fix byteordr covnerion ofr 'events' that was '32' instead of '64'Neil Brown2005-09-122-2/+2
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Fix remaining problems with hot-add bitmap to version-1 superblockNeil Brown2005-09-129-8/+150
| | | | | | Also some more tests - r5 and r6 bitmaps Signed-off-by: Neil Brown <neilb@suse.de>
* Fix assembling of array with spares when verion-1 superblock is used.Neil Brown2005-09-121-25/+32
| | | | | | | As spared don't have a position in the raid array with verion-1 superblocks, we need to handle them a bit differently. Signed-off-by: Neil Brown <neilb@suse.de>
* Add tests/05r1-internalbitmap-v1cNeil Brown2005-08-251-0/+47
|
* Add tests/05r1-internalbitmap-v1bNeil Brown2005-08-251-0/+48
|
* Add tests/05r1-internalbitmap-v1aNeil Brown2005-08-261-0/+47
|
* Passes all tests, nearly ready for release.Neil Brown2005-08-264-4/+4
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Getting ready for 2.0 release...Neil Brown2005-08-263-3/+3
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Support internal bitmaps with format-1 superblocks.Neil Brown2005-08-251-1/+1
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Check-in swap_super.cNeil Brown2005-08-181-2/+2
| | | | | | and update a test that uses it. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Add test for multipath and make it work.Neil Brown2005-08-161-0/+24
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Assorted fixesNeil Brown2005-08-168-4/+233
| | | | | | | | | Support "--build"ing arrays with bitmaps. hot-removal of bitmaps --re-add of drives recently removed. assorted extra tests Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Fix but when assembling v1 arraysNeil Brown2005-08-1515-15/+0
| | | | | | | Because raid_disk and disk.number are not longer in-sync, it needed some work. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Add 'quite' option and tidy up some tests.Neil Brown2005-08-1525-422/+413
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Add a test.Neil Brown2005-08-152-4/+30
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Support nameing of version-1 arrays.Neil Brown2005-08-091-0/+13
| | | | | | | --name is recognised in --create and --assemble name= is recognised in config file. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Add write-behind supportNeil Brown2005-08-091-0/+15
| | | | | | | | Currently this includes --write-behind to set level of write-behind supported --write-mostly to flag devices as write-mostly. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Support fixing of byte-swapped superblocks.Neil Brown2005-08-091-0/+22
| | | | | | | Good for moving between little-endian and big-endian. Still needs documentation. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Add test suite and releaseNeil Brown2005-08-0423-0/+917
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>