summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Always initialise a struct super_type to zeroNeil Brown2008-07-125-4/+11
|
* Fix freeing of updates that have been handled by monitor.Neil Brown2008-07-122-3/+5
| | | | | Yes, we do want to free the buf, and the space too if it is still there.
* Always assume_clean for raid0, linear, multipath, faultyNeil Brown2008-07-111-0/+2
| | | | | | For arrays that don't have redundancy (raid0, linear etc), the clean/dirty distinction doesn't mean anything. So always 'assume clean' for these arrays.
* Merge branch 'release' of ↵Neil Brown2008-06-204-7/+62
|\ | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/djbw/mdadm into devel-3.0
| * mdmon: add debug print statements for profiling mdmonDan Williams2008-06-164-7/+62
| | | | | | | | | | | | | | for development only as console output can block leading to monitor deadlocks in low mem situations Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* | Merge branch 'release' of ↵Neil Brown2008-06-195-166/+792
|\| | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/djbw/mdadm into devel-3.0
| * imsm: set map state depending on sync stateDan Williams2008-06-161-16/+32
| | | | | | | | Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * imsm: reenable mdmonDan Williams2008-06-161-0/+2
| | | | | | | | Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * imsm: write anchor lastDan Williams2008-06-161-13/+12
| | | | | | | | | | | | Ensure that newly written anchors reflect a consistent metadata block. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * imsm: implement store_zero_imsm and init_zero_imsmDan Williams2008-06-161-3/+13
| | | | | | | | Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * imsm: ->getinfo_super set raid_disk to disk.numberDan Williams2008-06-161-26/+8
| | | | | | | | | | | | | | | | | | | | | | | | A spare device by definition will have raid_disk set to -1, but when assembling the container we want this disk to by included. Fixes a SIGSEGV when doing: mdadm -A /dev/imsm -e imsm /dev/sd[b-e] ...where /dev/sde is marked as a global spare device Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * imsm: add 'Create' supportDan Williams2008-06-161-72/+577
| | | | | | | | Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * imsm: 'volume' is the proper name for imsm container membersDan Williams2008-06-132-22/+22
| | | | | | | | Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * imsm: ->container_dev needs to be set in load_super_imsm_allDan Williams2008-06-131-0/+1
| | | | | | | | | | | | | | It is used later by container_content_imsm to determine set the text_version of the member arrays. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * imsm: add 'mpb_size' to --examine outputDan Williams2008-06-131-3/+7
| | | | | | | | | | | | Break out sector_count() for use elsewhere. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * sysfs: helper routine to retrieve the scsi idDan Williams2008-06-132-1/+50
| | | | | | | | | | | | imsm records this information in its metadata Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * sysfs: provide a helper function for locating scsi_generic interfacesDan Williams2008-06-133-11/+69
| | | | | | | | | | | | imsm records and validates this data in its metadata Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * ddf: fix up validate_geometry to ignore other containersDan Williams2008-06-131-3/+3
| | | | | | | | Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * ddf: fix 'ddf' pointer corruptionDan Williams2008-06-131-2/+2
| | | | | | | | | | | | hostname[17] = 0 overwrites the last byte of the ddf pointer Signed-off-by: Dan Williams <dan.j.williams@intel.com>
| * ddf: convert size paramter to sectors when calling avail_size_ddfDan Williams2008-06-131-1/+1
| | | | | | | | Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* | Merge branch 'master' into devel-3.0Neil Brown2008-06-1914-24/+134
|\ \ | |/ |/| | | | | | | Conflicts: Makefile
| * Fix bug in forced assemble.Chris Webb2008-06-191-1/+1
| | | | | | | | | | | | | | From: Chris Webb <chris@arachsys.com> We are loading into the already-loaded 'st' instead of the newly create 'tst', which is clearly wrong.
| * Fix an error when assembling arrays that are in the middle of a reshape.Neil Brown2008-06-191-1/+4
| | | | | | | | | | | | It is important that dup_super always returns an 'st' with the same ->ss and ->minor_version as the st that was passed. This wasn't happening for 0.91 metadata (i.e. in the middle of a reshape).
| * Release 2.6.7mdadm-2.6.7Neil Brown2008-06-067-4/+38
| |
| * Avoid NULL reference calling free_super and elsewhere.Neil Brown2008-05-271-5/+7
| | | | | | | | | | | | | | Since we made free_super a superswitch call, we need to be careful that st is non NULL before calling st->ss->free_super(st). Also when updating byteorder there is a chance of a similar NULL deref.
| * Remove stray semicolonNeil Brown2008-05-271-1/+1
| | | | | | | | Causes compile error with gcc-2.95
| * Fix autoassemble for stack arrays.Neil Brown2008-05-204-5/+38
| | | | | | | | | | | | | | | | 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.
| * Release 2.6.6mdadm-2.6.6Neil Brown2008-05-197-4/+37
| |
| * Remove outdated HOWTO link and credit Jakob's contribution.David Greaves2008-05-191-5/+3
| | | | | | | | | | | | From: David Greaves <david@dgreaves.com> Signed-off-by: David Greaves <david@dgreaves.com>
| * Include sysfs.c in mdassemble.autoNeil Brown2008-05-191-3/+5
| | | | | | | | and tidy up Makefile a bit.
| * "make everything" now also makes mdassemble.autoNeil Brown2008-05-192-2/+8
| | | | | | | | | | | | | | This is make MDASSEMBLE_AUTO=1 mdassemble.static so we now find compile bugs more easily.
* | A kernel patch needed to add a spare to an active external-metadata arraydevelNeil Brown2008-06-121-0/+199
| |
* | Add DDF code for activate_spareNeil Brown2008-06-124-12/+245
| | | | | | | | Plus various bug fixes etc.
* | Support adding a spare to a degraded array.Neil Brown2008-06-124-20/+96
| | | | | | | | | | When signalled by the monitor, the manager will find spares and add them to the array and initiate a recovery.
* | Some fixes to make failures in ddf get handled properly.Neil Brown2008-06-122-7/+7
| |
* | Correctly set resync_start when creating an array.Neil Brown2008-06-121-0/+8
| |
* | DDF: Update array state and disk state properly when adding to a BVDNeil Brown2008-06-121-8/+36
| |
* | super method for updating ddf metadata.Neil Brown2008-06-121-9/+129
| |
* | Allow passing metadata update to the monitor.Neil Brown2008-06-126-7/+80
| | | | | | | | | | | | Code in manager can now just call queue_metadata_update with a (freeable) buf holding the update, and it will get passed to the monitor and written out.
* | Store and recover spare_assign info in DDF.Neil Brown2008-06-121-8/+24
| |
* | Add mppe and conf_rec_len to struct super_ddfNeil Brown2008-06-121-30/+24
| | | | | | | | | | Rather than having to pull them from inside structures and be_to_cpu them all the time.
* | Don't ignore errors in sysfs_add_disk.Neil Brown2008-06-121-5/+6
| | | | | | | | | | i.e. if the add fails, don't add the device to the internal data structures.
* | Fix some stuff.Neil Brown2008-05-271-3/+9
| |
* | Parse the 'instance' part of external:/mdXX/INST in metadata handler.Neil Brown2008-05-274-19/+24
| | | | | | | | This give more flexability.
* | Discard st->container_memberNeil Brown2008-05-274-14/+12
| | | | | | | | | | | | 'container_member' isn't really a well defined concept. Each metadata might enumerate members differently, so just let each format /mdX/YYYY as appropriate.
* | Remove st->text_version in favour of info->text_versionNeil Brown2008-05-276-30/+30
| | | | | | | | | | | | | | I want the metadata handler to have more control over the 'version', particularly for arrays which are members of containers. So discard st->text_version and instead use info->text_version which getinfo_super can initialise.
* | Change mark_clean to set_array_state.Neil Brown2008-05-274-23/+39
| | | | | | | | DDF needs more fine grained understanding of the array state.
* | Discard get_sync_pos. We should be using get_resync_start.Neil Brown2008-05-273-23/+3
| | | | | | | | | | | | | | | | | | "sync_complete" just tracks the current resync/recover/check/whatever pass. "resync_start" tracks which parts of the array are known to be in-sync (modulo active writes). So it is what we need to use to update the metadata. Also we cannot call it when the array has stopped, as the value is no longer available then. We must call it when the resync completes. Possibly also call it preiodically if the array is quiescent.
* | Start mdmon during incremental assembly of containerNeil Brown2008-05-272-0/+25
| |
* | allow --incremental to reuse devices that already existNeil Brown2008-05-272-1/+43
| | | | | | | | .. and other fixes.