]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Support --examine --brief --verbose properly
authorNeil Brown <neilb@suse.de>
Mon, 23 Oct 2006 05:51:26 +0000 (15:51 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 23 Oct 2006 05:51:26 +0000 (15:51 +1000)
Similar to -Esv, this combination should print out the
'devices=' line in the otherwise --breif output.

mdadm.c

diff --git a/mdadm.c b/mdadm.c
index 41e6c4c5073ca0f676f1d44013e2ee736bce9006..286df300a6e5bd7dd4d5dd69e8a1ed680d651ad7 100644 (file)
--- 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) {