summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | imsm: assemble raid devicesDan Williams2008-05-151-12/+123
| | | | | | | | | | | | From: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* | Set 'metadata_version' for container_member in Incremental_containerDan Williams2008-05-153-0/+25
| | | | | | | | | | | | From: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* | imsm: assemble container supportDan Williams2008-05-151-5/+52
| | | | | | | | | | | | From: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* | imsm: initial Intel(R) Matrix Storage Manager supportDan Williams2008-05-155-6/+1083
| | | | | | | | | | | | | | | | | | | | From: Dan Williams <dan.j.williams@intel.com> The following now work: --examine --examine --brief Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* | Create a container memberNeil Brown2008-05-155-3/+42
| | | | | | | | From: Neil Brown <neilb@suse.de>
* | Can now mostly assemble DDF arraysNeil Brown2008-05-156-19/+321
| |
* | Start on --assemble support for DDFNeil Brown2008-05-152-4/+72
| |
* | More ddf stuffNeil Brown2008-05-153-11/+70
| |
* | more ddf stuffNeil Brown2008-05-154-34/+448
| | | | | | | | | | | | Create a BVD in a DDF Do not actually assemble it yet...
* | Initial DDF support code.Dan Williams2008-05-156-7/+2090
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a ddf array by naming the device /dev/ddf* or specifying metadata 'ddf'. If ddf is specified with no level, assume a container (indeed, anything else would be wrong). **Need to use text_Version to set external metadata... More ddf support Load a ddf container. Now --examine /dev/ddf works. super-ddf: fix compile warning From: Dan Williams <dan.j.williams@intel.com> super-ddf.c:723: format %lu expects type long unsigned int, but argument 3 has type unsigned int Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* | Some support for external metadata.Neil Brown2008-05-153-6/+33
| | | | | | | | Allow specifying metadata type when creating arrays etc.
* | Change write_init_super to be called only once.Neil Brown2008-05-157-147/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current model for creating arrays involves writing a superblock to each device in the array. With containers (as with DDF), that model doesn't work. Every device in the container may need to be updated for an array made from just some the devices in a container. So instead of calling write_init_super for each device, we call it once for the array and have it iterate over all the devices in the array. To help with this, ->add_to_super now passes in an 'fd' and name for the device. These get saved for use by write_init_super. So add_to_super takes ownership of the fd, and write_init_super will close it. This information is stored in the new 'info' field of supertype. As part of this, write_init_super now removes any old traces of raid metadata rather than doing this in common code.
* | Add crc32 files.Neil Brown2008-05-153-2/+783
| | | | | | | | For ddf.
* | Add cpu_to_be convertions functions.Neil Brown2008-05-151-0/+14
| | | | | | | | DDF will uses these.
* | Reduce openning of dev in create.Neil Brown2008-05-151-10/+8
| | | | | | | | | | | | | | Now that validate_geometry opens and checks the device, we don't need to do it as much in top level Create. We only need it to check for old array or filesystem info. So only open the device at that place.
* | Add 'container' level and ->validate_geometry method.Neil Brown2008-05-155-22/+112
|/ | | | These will be used for ddf.
* Release 2.6.5mdadm-2.6.5Neil Brown2008-05-157-5/+47
|
* Get Changelog uptodateNeil Brown2008-05-151-0/+8
|
* Compiple fixes for mdassemble and diet-libcNeil Brown2008-05-152-43/+45
|
* Don't try the auto-detect test when md_mod is a moduleNeil Brown2008-05-151-0/+7
| | | | ....as this cannot work.
* Fix support for --update=swapsuperNeil Brown2008-05-152-2/+4
| | | | The user of dup_super broke it.
* Recent change broken handling of metadata-less arrays.Neil Brown2008-05-152-3/+5
| | | | | In particular, failing a device would give a silly error message.
* Fix possible NULL dereference in super_by_fdNeil Brown2008-05-151-1/+2
|
* Avoid possible null dereference in Assemble.Neil Brown2008-05-151-1/+2
| | | | | If the first device we look at has no superblock, there is no 'st' to free, so don't free it.
* Set LOG_PID for syslogHans Lambermont2008-05-121-1/+1
| | | | From: Hans Lambermont <hans.lambermont@newtec.eu>
* add --export option to --examineKay Sievers2008-05-067-11/+74
| | | | | | | From: Kay Sievers <kay.sievers@vrfy.org> Cc: David Zeuthen <david@fubar.dk> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
* Make device-special files for partitions when using --incrementalNeil Brown2008-05-053-6/+11
|
* let '-a' be specified for Incremental modeDan Williams2008-05-052-3/+8
| | | | | | From: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* Unify code into find_free_devnum.Neil Brown2008-05-054-41/+50
| | | | | Two places have code to find a free md device number. Make this a subroutine.
* fix load_super/free_super mismatch in util.cDan Williams2008-05-051-1/+1
| | | | | | From: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* Simplistig locking for --incremental.Bill Nottingham2008-05-051-1/+14
| | | | | | | | | | | | | | | | | | From: Bill Nottingham <notting@redhat.com> mdadm --incremental doesn't really do any locking. If you get multiple events in parallel for the same device (that has not yet started), they will all go down the path to create the array. One will succeed, the rest will have SET_ARRAY_INFO die with -EBUSY (md: array mdX already has disks!) and will exit without adding the disk. Original bug report is: https://bugzilla.redhat.com/show_bug.cgi?id=433932 This is solved by adding very very rudimentary locking. Incremental() now opens the device with O_EXCL to ensure only one invocation is frobbing the array at once. A simple loop just tries to open 5 times a second for 5 seconds. If the array stays locked that long, you probably have bigger issues.
* Create /dev/md if needed and it doesn't exist.Bill Nottingham2008-05-051-0/+14
| | | | From: Bill Nottingham <notting@redhat.com>
* Fix RAID acronym in man page.Neil Brown2008-05-051-2/+2
| | | | The 'D' in 'RAID' stands for 'DISKS' even it md supports other 'devices'.
* Add a .gitignore file.Neil Brown2008-04-291-0/+5
|
* Use .\" instead of '''Neil Brown2008-04-291-66/+66
| | | | Debian bug 477273
* diff -ru mdadm-2.6.4-orig/Query.c mdadm-2.6.4/Query.cNeil Brown2008-04-292-0/+6
|
* Fix possible bug with bitmap space allocation with v1.0 metadataNeil Brown2008-04-294-13/+15
| | | | | When adding a device to an array, make sure we don't reserve so much space for the bitmap that there isn't room for the data.
* Small improvements to --incremental for arrays that are in the middle of reshapeNeil Brown2008-04-281-1/+2
| | | | | | There is still a problem: If array is partially assembled and started read-only, the last device doesn't get added properly. Probably a kernel problem.
* Allow creation of a RAID6 with a single missing device.Neil Brown2008-04-282-2/+19
| | | | | | | | This did not work before as we couldn't mark it clean as there would be some parity blocks out of sync, and raid6 will not assemble a dirty degraded array. So make such arrays doubly degraded (the last device becomes a spare) and clean.
* Updates some URLs in the man page.Neil Brown2008-04-282-4/+9
| | | | Particularly, add the wiki on osdl.org
* Print 'Events' more sensibly.Neil Brown2008-04-282-1/+5
| | | | Instead of MSW.LSW, just print it as a 64bit number.
* Fix problems with array.size overflowing on large arrays.Neil Brown2008-04-283-3/+14
| | | | | | | | | | | array.size is 32bits and counts K. So for arrays with more than 4Terrabytes, it can overflow. The correct number can be read from sysfs, but there are still a few places that use array.size and risk truncation. What is worse. they compare a number of kilobytes with a number of sectors !! So use get_component_size() to read the sysfs information, and be more consistent about units.
* Fix for segfault when reading /proc/mdstatNeil Brown2008-04-284-0/+19
| | | | | | | | | Some kernel versions don't put a space between 'active' and '(auto-read-only)' in /proc/mdstat. This causes a parsing problem leaving 'level' set to NULL which causes a crash. So synthesise a space there if it is missing, and check for 'level' to be NULL and don't de-ref if it is.
* Use sysfs info for metadata version info in Detail and elsewhere.Neil Brown2007-12-143-13/+38
|
* Replace sysarray with mdinfoNeil Brown2007-12-146-63/+61
| | | | | Sure, mdinfo is bigger, but having a uniform structure for lots of things will make life easier.
* Use 'mdinfo' instead of special 'sysdev' structure.Neil Brown2007-12-145-88/+86
| | | | | there is needless duplicatiion between mdinfo and sysdev, so discard the latter.
* Some tidy up of 'devices' in assemble.Neil Brown2007-12-141-56/+56
| | | | | use "mdinfo" in the devices list rather than just copying ad-hoc fields in.
* Don't record oldmajor/oldminor any more during assemble.Neil Brown2007-12-141-3/+0
| | | | We don't use the information at all (any longer).
* Find super from fd on an array.Neil Brown2007-12-145-21/+53
| | | | | We used to use the major/minor numbers, but that isn't sufficient any more, so pass the fd, and possibly check 'text' version.
* Drop the superblock arg from all metadata methods.Neil Brown2007-12-1414-325/+330
| | | | It is now in the 'supertype'