]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Detail.c
Detail: deterministic ordering in --brief --verbose
authormwilck@arcor.de <mwilck@arcor.de>
Thu, 20 Jun 2013 20:21:05 +0000 (22:21 +0200)
committerNeilBrown <neilb@suse.de>
Mon, 24 Jun 2013 06:56:47 +0000 (16:56 +1000)
commit41a663b26781f4339d4284e87c5bb179d76abd0a
treed9b87fb2777be056860a1af5a828f60521ac5abc
parent0ddc35beedea6f07c686c99429aaddd8b5e1182d
Detail: deterministic ordering in --brief --verbose

Have mdadm --Detail --brief --verbose print the list of devices in
alphabetical order.

This is useful for debugging purposes. E.g. the test script
10ddf-create compares the output of two mdadm -Dbv calls which
may be different if the order is not deterministic.

(I confess: I use a modified "test" script that always runs
"mdadm --verbose" rather than "mdadm --quiet", otherwise this
wouldn't happen in 10ddf-create).

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
Detail.c