summaryrefslogtreecommitdiffstats
path: root/Examine.c
Commit message (Collapse)AuthorAgeFilesLines
* Examine: don't count containers as sparesDan Williams2009-09-151-1/+2
| | | | | | | | | | mdadm -Ebs will include containers in the scanned device list. Examine() falsely thinks they are spares when MD_DISK_SYNC is not set. This could be fixed by forcing all formats to set this flag for container devices, but this flag is currently used by imsm to identify free-floating spares. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* Examine: fixup output in the presence of containers with sparesDan Williams2009-09-151-3/+9
| | | | | | | If we dump any 'spare' or 'device' information for a container in the 'brief' case then we need a newline before printing member array info. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* Exmaine/brief: put member arrays after container arrays.NeilBrown2009-08-071-0/+2
| | | | | | | | | A previous patch moved move the '--examine --brief' reporting of member arrays to before their containers. This breaks "mdadm -As" assembly. So put them back, but still fix the problem addressed by previous patch. Signed-off-by: NeilBrown <neilb@suse.de>
* Merge branch 'master' of git://github.com/djbw/mdadmNeilBrown2009-08-071-3/+1
|\
| * fix examine_brief segfaultDan Williams2009-07-311-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When performing an "-Ebs -e <metadata type>" we segfault because the superblock has been freed too early. We also leak memory for 'ddf' and 'imsm' because, unlike super[01], we do not implicitly free when ->load_super is called on an already loaded supertype. So, fix up imsm and ddf to match type 0 and 1 ->load_super() semantics, and update Examine to not free the superblock until all usages have been exhausted. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* | Examine: make --metadata= work with --briefNeilBrown2009-07-101-2/+4
|/ | | | | | They had different assumptions about the lifetime of 'st'. Signed-off-by: NeilBrown <neilb@suse.de>
* Update copyright dates and remove references to @cse.unsw.edu.auNeilBrown2009-06-021-7/+2
| | | | | | Also removed 'paper' addresses. Signed-off-by: NeilBrown <neilb@suse.de>
* Make --brief even briefer.NeilBrown2009-05-111-1/+1
| | | | | | | | | | | | | Because ---examine --brief, or --detail --brief are often used to create mdadm.conf, and because people don't want to have to update their mdadm.conf unnecessarily, we don't want to include information that might change. And now that level changing is supported, that is almost everything but UUID. So move some more fields into the "Only print with --verbose" class. Signed-off-by: NeilBrown <neilb@suse.de>
* Examine: add examine_export for ddf and avoid crashes.NeilBrown2009-03-091-1/+2
| | | | | | If the personality doesn't provide export_examine_super, don't crash. Signed-off-by: NeilBrown <neilb@suse.de>
* Examine: fix MD_DISK_SYNC is a bit not a flagDan Williams2008-10-281-1/+1
| | | | | | | Examine() is actually looking at the ACTIVE bit. This happened to work for imsm spares but now it needs to be fixed up. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* add --export option to --examineKay Sievers2008-05-061-1/+4
| | | | | | | From: Kay Sievers <kay.sievers@vrfy.org> Cc: David Zeuthen <david@fubar.dk> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
* Drop the superblock arg from all metadata methods.Neil Brown2007-12-141-12/+11
| | | | It is now in the 'supertype'
* Fix compare_super to take supertype instead of a superblock.Neil Brown2007-12-141-1/+1
| | | | | As this function takes 2 superblocks, the change is a bit more subtle, so is done separately.
* Add 'supertype' arg to almost all metadata methods.Neil Brown2007-12-141-9/+11
| | | | The 'superblock' will be moved into this structure soon.
* Allow metadata handlers to free their own superblock.Neil Brown2007-12-141-3/+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-1/+1
|
* Fix error code from examine properly..Neil Brown2006-06-021-5/+6
| | | | | | The last one was wrong :-( Signed-off-by: Neil Brown <neilb@suse.de>
* Make sure homehost is set correctly when --update=uuidNeil Brown2006-05-231-1/+1
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Include homehost information in --examine as appropriateNeil Brown2006-05-191-2/+4
| | | | 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>
* Fix incorrect error status from --examine --scanNeil Brown2006-05-191-2/+3
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Remove ident arg from getinfo_super;Neil Brown2006-03-271-3/+2
| | | | | | Add a 'name' field to 'info' to compensate. Signed-off-by: Neil Brown <neilb@suse.de>
* Provide error message if --examine does find a valid superblockNeil Brown2006-01-271-4/+8
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Allow scanning of devices listed in /proc/partitions independant of /devNeil Brown2005-12-051-2/+2
| | | | | | | If a device found in /proc/partitions isn't listed in /dev, then mknod a temporary name and open that. Signed-off-by: Neil Brown <neilb@suse.de>
* Remvoe blank line from '--examine --brief' output.Neil Brown2005-11-221-1/+2
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Add 'quite' option and tidy up some tests.Neil Brown2005-08-151-1/+1
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Support nameing of version-1 arrays.Neil Brown2005-08-091-2/+3
| | | | | | | --name is recognised in --create and --assemble name= is recognised in config file. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Don't list device= in --examine --scan output.Neil Brown2005-06-141-4/+6
| | | | | | | 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>
* super1Neil Brown2005-05-031-13/+14
| | | | | | | 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/+15
| | | | | | | | 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-156/+24
| | | | 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.8.0mdadm-1.8.0Neil Brown2004-11-011-1/+2
|
* mdadm-1.7.0mdadm-1.7.0Neil Brown2004-08-111-0/+10
|
* mdadm-1.6.0mdadm-1.6.0Neil Brown2004-06-041-5/+5
|
* mdadm-1.5.0mdadm-1.5.0Neil Brown2004-01-221-1/+1
|
* mdadm-1.4.0mdadm-1.4.0Neil Brown2003-10-281-1/+3
|
* mdadm-1.3.0mdadm-1.3.0Neil Brown2003-07-281-0/+1
|
* mdadm-1.0.9mdadm-1.0.9Neil Brown2003-02-121-1/+1
|
* mdadm-1.0.1mdadm-1.0.1Neil Brown2002-05-201-1/+29
|
* mdadm-0.8.2mdadm-0.8.2Neil Brown2002-04-111-8/+8
|
* mdadm-0.8mdadm-0.8Neil Brown2002-04-041-11/+1
|
* mdadm-0.7.1mdadm-0.7.1Neil Brown2002-03-151-1/+1
|
* mdadm-0.7mdadm-0.7Neil Brown2002-03-081-3/+3
|
* mdctl-0.6mdctl-0.6Neil Brown2002-03-061-103/+170
|
* mdctl-0.5mdctl-0.5Neil Brown2001-08-231-1/+1
|
* mdctl-v0.4mdctl-v0.4Neil Brown2001-07-261-3/+22
|
* mdctl-v0.3mdctl-v0.3Neil Brown2001-06-141-10/+15
|
* mdctl-v0.2mdctl-v0.2Neil Brown2001-06-081-0/+144