summaryrefslogtreecommitdiffstats
path: root/Query.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-07-12 20:27:37 +1000
committerNeil Brown <neilb@suse.de>2008-07-12 20:27:37 +1000
commitb8ac1967953fea50f0ec1e1650a3a9f52e6525d8 (patch)
tree5571de13f84fcfb82fe595960d43192e7866c66c /Query.c
parent1522c538b1b8a685d4f0280eefbb2b82b82c1b6a (diff)
downloadmdadm-b8ac1967953fea50f0ec1e1650a3a9f52e6525d8.tar.gz
mdadm-b8ac1967953fea50f0ec1e1650a3a9f52e6525d8.tar.xz
mdadm-b8ac1967953fea50f0ec1e1650a3a9f52e6525d8.zip
Remove 'major' from superswitch.
It isn't generally meaningful.
Diffstat (limited to 'Query.c')
-rw-r--r--Query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Query.c b/Query.c
index 0802964..fcbafcf 100644
--- a/Query.c
+++ b/Query.c
@@ -96,7 +96,7 @@ int Query(char *dev)
if (superror == 0) {
/* array might be active... */
st->ss->getinfo_super(st, &info);
- if (st->ss->major == 0) {
+ if (st->ss == &super0) {
mddev = get_md_name(info.array.md_minor);
disc.number = info.disk.number;
activity = "undetected";
@@ -121,7 +121,7 @@ int Query(char *dev)
activity,
map_num(pers, info.array.level),
mddev);
- if (st->ss->major == 0)
+ if (st->ss == &super0)
put_md_name(mddev);
}
return 0;