summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: adjust sizes for new defaultsNeilBrown2010-03-1016-31/+32
| | | | | | | Default metadata type is now 1.2, and we sometimes add extra alignment before the data section, so adjust tests for these changes. Signed-off-by: NeilBrown <neilb@suse.de>
* Set default bitmap-chunksize for internal bitmaps to at least 64MegNeilBrown2009-11-1710-11/+11
| | | | | | | | | A small bitmap-chunksize hurts performance without helping resync speed much - particularly on internal bitmaps. So set the default to at least 64Meg. Signed-off-by: NeilBrown <neilb@suse.de>
* Change default metadata from 0.90 to 1.1NeilBrown2009-11-1731-89/+94
| | | | | | | | | 1.1 is more flexible in a number of ways and is safer. 0.90 is still fully supported. 1.0 should possibly be used for RAID1 arrays that you want to boot off, depending on your boot loader. Signed-off-by: NeilBrown <neilb@suse.de>
* Increase default chunk size to 512KNeilBrown2009-11-1718-38/+38
| | | | | | | | | | | This seems more appropriate for current (and recent) model drives than 64K. 64K is still the default for '--build' as changing that could corrupt data. 64K is also the default rounding for 'linear' on kernels older than 2.6.16. Signed-off-by: NeilBrown <neilb@suse.de>
* Merge branch 'master' into devel-3.1NeilBrown2009-10-223-4/+82
|\
| * testreshape5 fixes.NeilBrown2009-10-201-1/+2
| | | | | | | | | | | | We seem to need a 'udevadm settle', and possibly the 'sync'.. Signed-off-by: NeilBrown <neilb@suse.de>
| * tests/imsm: allow for rounding of array size.NeilBrown2009-10-201-0/+3
| | | | | | | | | | | | | | IMSM rounds array size to a multiple of 1024K, so our tests must assume this. Signed-off-by: NeilBrown <neilb@suse.de>
| * test/ddf: don't insist that mdadm.conf is always in the same order.NeilBrown2009-10-191-4/+4
| | | | | | | | | | | | | | When created by different process, the order could reasonably be different. So sort before compare Signed-off-by: NeilBrown <neilb@suse.de>
| * test/raid6integ: correct typeNeilBrown2009-10-191-2/+2
| | | | | | | | | | | | ddf-zero-restart was misspelled. Signed-off-by: NeilBrown <neilb@suse.de>
| * imsm: regression test for prodigal array member scenarioDan Williams2009-10-132-0/+78
| | | | | | | | | | | | | | | | Provide a test to sanity check assembly and reassembly in the presence of conflicting family number information. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* | tests/imsm: allow for rounding of array size.NeilBrown2009-10-161-0/+3
| | | | | | | | | | | | | | IMSM rounds array size to a multiple of 1024K, so our tests must assume this. Signed-off-by: NeilBrown <neilb@suse.de>
* | Test different r5/r6 layouts.NeilBrown2009-10-164-3/+154
| | | | | | | | | | | | Make sure kernel and restripe agree on all different layouts. Signed-off-by: NeilBrown <neilb@suse.de>
* | test changelevel: add tests for changing degraded arrays.NeilBrown2009-10-121-0/+56
| | | | | | | | Signed-off-by: NeilBrown <neilb@suse.de>
* | Test level changes and related reshaping.NeilBrown2009-10-121-0/+51
| | | | | | | | Signed-off-by: NeilBrown <neilb@suse.de>
* | testreshape5 - add tests for RAID6NeilBrown2009-10-121-5/+12
|/ | | | | | .. to make sure our raid6 calculations are working. Signed-off-by: NeilBrown <neilb@suse.de>
* testreshape5 - flush devices between tests.NeilBrown2009-09-251-0/+1
| | | | | | We need to flush the block devices before reading different data. Signed-off-by: NeilBrown <neilb@suse.de>
* tests: basic ddf testsNeilBrown2009-04-141-0/+76
| | | | | | | Test script to create a ddf with three different member arrays, and assemble it in a variety of ways. Signed-off-by: NeilBrown <neilb@suse.de>
* tests: add some simple data integrity tests for raid5/raid6NeilBrown2009-04-142-0/+82
| | | | | | Make sure the data is preserved even when the array is degraded. Signed-off-by: NeilBrown <neilb@suse.de>
* ism-tests: fix the imsm-create-fail-rebuild testNeilBrown2009-04-011-2/+3
| | | | | it was testing the return status of mdadm wrongly, and I found I needed a 'udevadm settle'.
* imsm: provide a simulated option-rom for regression testsDan Williams2009-02-233-4/+156
| | | | | | | | | | | IMSM_NO_PLATFORM turns off checks that should be tested, so provide a IMSM_TEST_OROM variable to allow testing the orom constraints in the mdadm regression suite. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* imsm: test overlapping createsDan Williams2008-12-083-0/+94
| | | | Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* tests/06name: adjust for homehostNeilBrown2008-11-041-2/+2
| | | | | | | Now that we set homehost by default, adjust teh 06name test accordingly. Signed-off-by: NeilBrown <neilb@suse.de>
* Factor out add-disk codeNeilBrown2008-09-182-0/+14
| | | | | | | | | | | | | The variety of approaches to 'add_disk' are factored out into a separate function, and Incremental mode benefits by being closer to supporting the assembly of containers. Also remove the adding-to-array-data-structure out of sysfs_add_disk and into add_disk. And add some tests for --incremental mode to make sure we don't break it. Signed-off-by: NeilBrown <neilb@suse.de>
* Some more cleanup of tests.Neil Brown2008-06-273-8/+9
| | | | | Don't use '$mdadm', just 'mdadm'. And --stop all arrays when finished.
* Add test for stoping and restarting a raid5 reshape.Neil Brown2008-06-271-0/+33
| | | | | There was a kernel bug with stopping and restarting raid5 recently. So add a test to check for it.
* 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>