Dan Williams
ee836c39b5
Examine: fixup output in the presence of containers with spares
...
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>
2009-09-15 11:34:20 -07:00
NeilBrown
4737ae25de
Exmaine/brief: put member arrays after container arrays.
...
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>
2009-08-07 14:17:40 +10:00
NeilBrown
823f06865e
Merge branch 'master' of git://github.com/djbw/mdadm
2009-08-07 13:45:38 +10:00
Dan Williams
37424f132c
fix examine_brief segfault
...
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>
2009-07-31 17:11:41 -07:00
NeilBrown
0ea2b5ef1b
Examine: make --metadata= work with --brief
...
They had different assumptions about the lifetime of 'st'.
Signed-off-by: NeilBrown <neilb@suse.de>
2009-07-10 10:44:32 +10:00
NeilBrown
e736b62389
Update copyright dates and remove references to @cse.unsw.edu.au
...
Also removed 'paper' addresses.
Signed-off-by: NeilBrown <neilb@suse.de>
2009-06-02 14:35:45 +10:00
NeilBrown
061f2c6abd
Make --brief even briefer.
...
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>
2009-05-11 15:18:20 +10:00
NeilBrown
bceedeec55
Examine: add examine_export for ddf and avoid crashes.
...
If the personality doesn't provide export_examine_super, don't crash.
Signed-off-by: NeilBrown <neilb@suse.de>
2009-03-09 14:10:52 +11:00
Dan Williams
032e9e2953
Examine: fix MD_DISK_SYNC is a bit not a flag
...
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>
2008-10-28 10:55:31 -07:00
Kay Sievers
0d726f17e1
add --export option to --examine
...
From: Kay Sievers <kay.sievers@vrfy.org>
Cc: David Zeuthen <david@fubar.dk>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
2008-05-06 10:02:38 +10:00
Neil Brown
3da92f272d
Drop the superblock arg from all metadata methods.
...
It is now in the 'supertype'
2007-12-14 20:14:33 +11:00
Neil Brown
64557c3391
Fix compare_super to take supertype instead of a superblock.
...
As this function takes 2 superblocks, the change is a bit more subtle,
so is done separately.
2007-12-14 20:14:27 +11:00
Neil Brown
68c7d6d790
Add 'supertype' arg to almost all metadata methods.
...
The 'superblock' will be moved into this structure soon.
2007-12-14 20:14:16 +11:00
Neil Brown
df37ffc039
Allow metadata handlers to free their own superblock.
...
As the metadata handler allocates the superblock, it should free it
too. DDF will have a more complex 'superblock' which needs more complex
freeing.
2007-12-14 20:14:00 +11:00
Neil Brown
aba69144fd
Remove spaces/tabs from ends of lines.
2007-12-14 20:13:43 +11:00
Neil Brown
e52f8e251a
Fix error code from examine properly..
...
The last one was wrong :-(
Signed-off-by: Neil Brown <neilb@suse.de>
2006-06-02 01:32:45 +00:00
Neil Brown
e5eac01f3d
Make sure homehost is set correctly when --update=uuid
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-23 04:51:39 +00:00
Neil Brown
a1cbd7d053
Include homehost information in --examine as appropriate
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 07:19:04 +00:00
Neil Brown
4f589ad0c5
Just updaqte copyright dates and email address
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 05:25:11 +00:00
Neil Brown
751406f361
Fix incorrect error status from --examine --scan
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 03:48:49 +00:00
Neil Brown
313176636e
Remove ident arg from getinfo_super;
...
Add a 'name' field to 'info' to compensate.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-27 04:34:38 +00:00
Neil Brown
6baf9a876b
Provide error message if --examine does find a valid superblock
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-27 06:25:55 +00:00
Neil Brown
8b0dabea07
Allow scanning of devices listed in /proc/partitions independant of /dev
...
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>
2005-12-05 05:52:50 +00:00
Neil Brown
d9d4e4698f
Remvoe blank line from '--examine --brief' output.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2005-11-22 03:38:44 +00:00
Neil Brown
dab6685f3d
Add 'quite' option and tidy up some tests.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-15 06:14:27 +00:00
Neil Brown
947fd4ddb5
Support nameing of version-1 arrays.
...
--name is recognised in --create and --assemble
name= is recognised in config file.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-09 05:23:20 +00:00
Neil Brown
22892d5632
Don't list device= in --examine --scan output.
...
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>
2005-06-14 06:34:23 +00:00
Neil Brown
82d9eba687
super1
...
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>
2005-05-03 23:44:40 +00:00
Neil Brown
f9ce90ba50
Add a 'super-switch' so that different format superblocks can be used.
...
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>
2005-05-03 23:44:32 +00:00
Neil Brown
4b1ac34b51
Separate sueprblock handling into separate file
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-05-03 23:44:18 +00:00
Neil Brown
182661f409
Change "dirty" to "active" in array status
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:07 +00:00
Neil Brown
b5e6464503
mdadm-1.8.0
2004-11-01 04:49:34 +00:00
Neil Brown
e5329c3747
mdadm-1.7.0
2004-08-11 02:16:01 +00:00
Neil Brown
dd0781e505
mdadm-1.6.0
2004-06-04 12:03:19 +00:00
Neil Brown
98c6faba80
mdadm-1.5.0
2004-01-22 02:10:29 +00:00
Neil Brown
feb716e9c3
mdadm-1.4.0
2003-10-28 23:20:01 +00:00
Neil Brown
aa88f531b4
mdadm-1.3.0
2003-07-28 23:59:00 +00:00
Neil Brown
5787fa4906
mdadm-1.0.9
2003-02-12 00:17:26 +00:00
Neil Brown
bd526cee92
mdadm-1.0.1
2002-05-20 11:17:18 +00:00
Neil Brown
b83d95f362
mdadm-0.8.2
2002-04-11 01:36:14 +00:00
Neil Brown
e0d1903663
mdadm-0.8
2002-04-04 01:58:32 +00:00
Neil Brown
56eb10c0b6
mdadm-0.7.1
2002-03-15 05:21:36 +00:00
Neil Brown
9a9dab3670
mdadm-0.7
2002-03-08 00:03:52 +00:00
Neil Brown
cd29a5c835
mdctl-0.6
2002-03-06 23:17:40 +00:00
Neil Brown
5282684628
mdctl-0.5
2001-08-23 02:33:20 +00:00
Neil Brown
82b27616de
mdctl-v0.4
2001-07-26 07:00:09 +00:00
Neil Brown
682c705194
mdctl-v0.3
2001-06-14 05:33:53 +00:00
Neil Brown
64c4757e27
mdctl-v0.2
2001-06-08 02:36:23 +00:00