diff options
author | Neil Brown <neilb@suse.de> | 2005-06-14 06:34:23 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-06-14 06:34:23 +0000 |
commit | 22892d5632b454a18be7fb36a82b4c1af691ef66 (patch) | |
tree | f3c723ec1101fff5f565fc8ff122361f3375925a /Examine.c | |
parent | b79713f8c103031e10bb41bb552a023a884b2ad4 (diff) |
Don't list device= in --examine --scan output.
As the device list isn't stable, recording it should be avoided.
The device= list is still available if --verbose is given (once).
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'Examine.c')
-rw-r--r-- | Examine.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -130,10 +130,12 @@ int Examine(mddev_dev_t devlist, int brief, int scan, int SparcAdjust, struct su char *d; ap->st->ss->brief_examine_super(ap->super); if (ap->spares) printf(" spares=%d", ap->spares); - printf(" devices"); - for (d=dl_next(ap->devs); d!= ap->devs; d=dl_next(d)) { - printf("%c%s", sep, d); - sep=','; + if (brief > 1) { + printf(" devices"); + for (d=dl_next(ap->devs); d!= ap->devs; d=dl_next(d)) { + printf("%c%s", sep, d); + sep=','; + } } free(ap->super); /* FIXME free ap */ |