On Wednesday July 18, davidsen@xxxxxxx wrote: > David Greaves wrote: > > > > See where it says 'component' ? :) > > > > I wish mdadm --detail and --examine were just aliases and the output > > varied according to whether you looked at a component (eg /dev/sda1) > > or an md device (/dev/md0) > > > > I get that wrong *all* the time... > > Neil, if you will take that as a suggestion, you can take this as a > second. While I have learned to use the correct option most of the time, > this is a case where the software can make an unambiguous decision to > avoid the human having to stop and think which option is appropriate. The software cannot make an unambiguous decision. It is quite possible for one md device to be a component of another md device. In that case, --examine and --detail are both very meaningful and very different. If you have trouble remembering the difference, train yourself to use --query instead. I am willing to consider suggestions for improving the error message when -D or -E don't find what they expect. I am willing to add aliases that might make it easier to remember the difference (I confess that I chose 'detail' and 'examine' largely because they start with 'd' and 'e', to go with assemble, build, and create) I am willing to make --query more useful if anyone has any suggestions. But I am not willing to make --detail and --examine behave identically. NeilBrown - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html