summaryrefslogtreecommitdiff
path: root/Examine.c
diff options
context:
space:
mode:
authorLabun, Marcin <Marcin.Labun@intel.com>2011-03-23 12:04:46 +1100
committerNeilBrown <neilb@suse.de>2011-03-23 12:04:46 +1100
commitdf3346e675d731b4c847272fc40bb992ace7554e (patch)
treee94e40b2a5ca5323f1bdca7cd877ecb4567d4335 /Examine.c
parent246cebdb7601fc41ee0cca9a5379cdd7dc072380 (diff)
examine: allows to examine a disk metadata on non-metadata compliant systems
Allow for loading metadata from disk attached to non-metadata compliant system. Affects mdadm --examine and guess_super. Added ignore_hw_compat in supertype to pass information to load_super handler. If ignore_hw_compat is set the handler should load metadata also from disks that do not comply with metadata requirements (i.e. disk is not attached to native controller, etc). Signed-off-by: Marcin Labun <marcin.labun@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Examine.c')
-rw-r--r--Examine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Examine.c b/Examine.c
index f949646f..5d71e537 100644
--- a/Examine.c
+++ b/Examine.c
@@ -87,6 +87,7 @@ int Examine(struct mddev_dev *devlist, int brief, int export, int scan,
st = guess_super(fd);
if (st) {
err = 1;
+ st->ignore_hw_compat = 1;
if (!container)
err = st->ss->load_super(st, fd,
(brief||scan) ? NULL
@@ -98,6 +99,7 @@ int Examine(struct mddev_dev *devlist, int brief, int export, int scan,
if (!err)
have_container = 1;
}
+ st->ignore_hw_compat = 0;
} else {
if (!brief) {
fprintf(stderr, Name ": No md superblock detected on %s.\n", devlist->devname);