From: Neil Brown Date: Mon, 23 Oct 2006 05:51:26 +0000 (+1000) Subject: Support --examine --brief --verbose properly X-Git-Tag: mdadm-2.5.5~1 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=commitdiff_plain;h=e843d5d7796815471510ddc9367845b876c4435c Support --examine --brief --verbose properly Similar to -Esv, this combination should print out the 'devices=' line in the otherwise --breif output. --- diff --git a/mdadm.c b/mdadm.c index 41e6c4c5..286df300 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) {