Support --examine --brief --verbose properly
Similar to -Esv, this combination should print out the 'devices=' line in the otherwise --breif output.
This commit is contained in:
parent
3a43c80392
commit
e843d5d779
2
mdadm.c
2
mdadm.c
|
@ -1148,6 +1148,8 @@ int main(int argc, char *argv[])
|
||||||
fprintf(stderr, Name ": No devices listed in %s\n", configfile?configfile:DefaultConfFile);
|
fprintf(stderr, Name ": No devices listed in %s\n", configfile?configfile:DefaultConfFile);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
if (brief && verbose)
|
||||||
|
brief = 2;
|
||||||
rv = Examine(devlist, scan?(verbose>1?0:verbose+1):brief, scan, SparcAdjust, ss, homehost);
|
rv = Examine(devlist, scan?(verbose>1?0:verbose+1):brief, scan, SparcAdjust, ss, homehost);
|
||||||
} else {
|
} else {
|
||||||
if (devlist == NULL) {
|
if (devlist == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue