summaryrefslogtreecommitdiffstats
path: root/Detail.c
Commit message (Collapse)AuthorAgeFilesLines
* add --export option to --examineKay Sievers2008-05-061-1/+1
| | | | | | | From: Kay Sievers <kay.sievers@vrfy.org> Cc: David Zeuthen <david@fubar.dk> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
* Fix problems with array.size overflowing on large arrays.Neil Brown2008-04-281-1/+1
| | | | | | | | | | | 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.
* Use sysfs info for metadata version info in Detail and elsewhere.Neil Brown2007-12-141-11/+30
|
* Find super from fd on an array.Neil Brown2007-12-141-1/+1
| | | | | 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-141-18/+16
| | | | It is now in the 'supertype'
* Add 'supertype' arg to almost all metadata methods.Neil Brown2007-12-141-6/+6
| | | | The 'superblock' will be moved into this structure soon.
* Allow metadata handlers to free their own superblock.Neil Brown2007-12-141-1/+3
| | | | | | As the metadata handler allocates the superblock, it should free it too. DDF will have a more complex 'superblock' which needs more complex freeing.
* Remove spaces/tabs from ends of lines.Neil Brown2007-12-141-6/+6
|
* Add metadata version information to "--detail --brief" output.Neil Brown2007-11-131-1/+4
|
* "--export" segfaults with non-persistent super blocksTim Woods2007-07-231-1/+2
| | | | | | | From: Tim Woods <timwoods@uklinux.net> This patch fixes a NULL pointer dereference in Detail.c when running 'mdadm --detail --export' on a device with non-persistent super blocks.
* Fix compile error in Detail.cNeil Brown2007-05-221-1/+1
| | | | | 'avail' is undefined if '--export', so make sure we don't try to use it.
* Make return code for "--detail --test" more reliable.Neil Brown2007-05-211-4/+14
| | | | Missing devices as well as failed devices cause an error.
* Add --export option to --detail to use key=value pairs.Kay Sievers2007-05-081-2/+14
| | | | | | | | udev likes to get information about a device as key=value pairs so it can create disk/by-id links etc. So add --export flag which causes the output of --detail to easily parsable. From: Kay Sievers <kay.sievers@novell.com>
* Central calls to ioctl BLKGETSIZENeil Brown2006-12-141-12/+2
| | | | Instead of opencoding the same thing everywhere.
* Change 'Device Size' to 'Used Dev Size'Neil Brown2006-12-141-3/+6
| | | | | because it only shows how much of each device is actually used, not how big they are.
* Include homehost information in --detail where appropriate.Neil Brown2006-05-191-2/+2
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Just updaqte copyright dates and email addressNeil Brown2006-05-191-1/+1
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Detail checks if array has been started or not and includes that in report.Neil Brown2006-05-151-2/+3
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Support new offset layout for raid10Neil Brown2006-05-151-3/+5
| | | | | | Requires 2.6.18. Signed-off-by: Neil Brown <neilb@suse.de>
* Reduce dependance on MD_SB_DISKSNeil Brown2006-03-281-1/+1
| | | | | | --monitor should now work with arrays larger than 28 devices. Signed-off-by: Neil Brown <neilb@suse.de>
* Add information about reshape to --detailNeil Brown2006-03-281-2/+38
| | | | | | Also fix problems with dev names and symlinks Signed-off-by: Neil Brown <neilb@suse.de>
* Don't try to get bitmap info on old kernels.Neil Brown2006-03-281-2/+4
| | | | | | | | .. this causes silly warnings. Unfortuantely there are 2.6 kernels which will still produce warnings. We cannot reliable detect those. Signed-off-by: Neil Brown <neilb@suse.de>
* Create missing /dev files where needed.Neil Brown2006-03-281-3/+3
| | | | | | | Whenever we need a device file to open, if one cannot be found in /dev, create a temporary one. Signed-off-by: Neil Brown <neilb@suse.de>
* Fix messy --detail output when there is a failed device.Neil Brown2006-03-281-0/+1
| | | | | | The missing devices show as garbage. Signed-off-by: Neil Brown <neilb@suse.de>
* Remove ident arg from getinfo_super;Neil Brown2006-03-271-2/+1
| | | | | | Add a 'name' field to 'info' to compensate. Signed-off-by: Neil Brown <neilb@suse.de>
* Sort mdstat entries so that composites are well-ordered.Neil Brown2006-01-311-1/+1
| | | | | | | This means that "-Ds" lists arrays in an approprate order for assembly. Signed-off-by: Neil Brown <neilb@suse.de>
* Report device size correctly in --detail for Large devices.Neil Brown2006-01-301-3/+7
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Stuff like..Neil Brown2006-01-301-0/+7
| | | | | | | | | - report Intent Bitmap in --detail - report internal bitmap in --examine - pass' --force through to --grow --bitmap - support v.large arrays in --grow --bitmap Signed-off-by: Neil Brown <neilb@suse.de>
* Support --help --assemble etc.Neil Brown2006-01-301-2/+7
| | | | | | | | | i.e. allow '--help' to be first and still give context sensitive help. Also don't print truncated device-size of very large arrays. Signed-off-by: Neil Brown <neilb@suse.de>
* Fix bug on new --detail codeNeil Brown2005-08-161-0/+2
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Fix --detail output for version 1 superblocks.Neil Brown2005-08-151-8/+26
| | | | | | As raid_disk no longer matches number, we do things differently. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Support nameing of version-1 arrays.Neil Brown2005-08-091-1/+2
| | | | | | | --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/+3
| | | | | | | | 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>
* Don't list device= in --examine --scan output.Neil Brown2005-06-141-1/+1
| | | | | | | As the device list isn't stable, recording it should be avoided. The device= list is still available if --verbose is given (once). Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Increase max-devs on type-1 superblocksNeil Brown2005-06-071-2/+5
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* super1Neil Brown2005-05-031-9/+9
| | | | | | | 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>
* Add a 'super-switch' so that different format superblocks can be used.Neil Brown2005-05-031-7/+10
| | | | | | | | 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>
* Separate sueprblock handling into separate fileNeil Brown2005-05-031-24/+16
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Change MAJOR() etc to major() etcNeil Brown2005-04-041-3/+3
| | | | | | | | | 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>
* Change "dirty" to "active" in array statusNeil Brown2005-04-041-1/+1
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* mdadm-1.7.0mdadm-1.7.0Neil Brown2004-08-111-26/+87
|
* mdadm-1.6.0mdadm-1.6.0Neil Brown2004-06-041-14/+21
|
* mdadm-1.5.0mdadm-1.5.0Neil Brown2004-01-221-2/+13
|
* mdadm-1.4.0mdadm-1.4.0Neil Brown2003-10-281-7/+17
|
* mdadm-1.3.0mdadm-1.3.0Neil Brown2003-07-281-0/+1
|
* mdadm-1.1.0mdadm-1.1.0Neil Brown2003-03-021-1/+11
|
* mdadm-1.0.9mdadm-1.0.9Neil Brown2003-02-121-3/+4
|
* mdadm-0.8.2mdadm-0.8.2Neil Brown2002-04-111-12/+15
|
* mdadm-0.8mdadm-0.8Neil Brown2002-04-041-5/+10
|
* mdadm-0.7.2mdadm-0.7.2Neil Brown2002-03-201-1/+4
|