summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-10-23 15:51:26 +1000
committerNeil Brown <neilb@suse.de>2006-10-23 15:51:26 +1000
commite843d5d7796815471510ddc9367845b876c4435c (patch)
treec7b8ab9653f796857c6fa27c30d85f8667e485a2 /mdadm.c
parent3a43c8039227d5d4b0cf02c086b21bb65c145450 (diff)
downloadmdadm-e843d5d7796815471510ddc9367845b876c4435c.tar.gz
mdadm-e843d5d7796815471510ddc9367845b876c4435c.tar.xz
mdadm-e843d5d7796815471510ddc9367845b876c4435c.zip
Support --examine --brief --verbose properly
Similar to -Esv, this combination should print out the 'devices=' line in the otherwise --breif output.
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdadm.c b/mdadm.c
index 41e6c4c..286df30 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -1148,6 +1148,8 @@ int main(int argc, char *argv[])
fprintf(stderr, Name ": No devices listed in %s\n", configfile?configfile:DefaultConfFile);
exit(1);
}
+ if (brief && verbose)
+ brief = 2;
rv = Examine(devlist, scan?(verbose>1?0:verbose+1):brief, scan, SparcAdjust, ss, homehost);
} else {
if (devlist == NULL) {