On Friday November 18, [EMAIL PROTECTED] wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
>
> I just upgraded to mdadm-2.1 from mdadm-1.12.0 and noticed
> that the following command (which is even mentioned in the
> manual page) doesn't work anymore:
>
> [EMAIL PROTECTED]:~ {838} $ mdadm -Ebsc partitions
> mdadm: cannot open partitions: No such file or directory
No.... I guess I should fix the man page, and maybe the code :-(
In mdadm-2 we've added --bitmap= and use '-b' as a short version.
So sometimes -b takes an argument (--bitmap) and sometimes not
(--brief). So getopt is told that it takes an optional argument.
This explains the observed behaviour.
Possibly this was a mistake....
I would like it to take an argument in contexts where --bitmap was
meaningful (Create, Assemble, Grow) and not where --brief is
meaningful (Examine, Detail). but I don't know if getopt_long will
allow the 'short_opt' string to be changed half way through
processing...
At the very least, I can print a message if '-b' is being interpreted
as as --brief, but the option argument is present.
-a has the same problem (--add vs --auto).
I'll see what I can do,
Thanks.
>
> I also noticed that there is now an additional newline between
> the "ARRAY" lines. Is that intentional? IMHO there should only
> by one newline after each line here.
>
Oh yes. That blank line gets filled with 'spares=' if there are
any spares, and =devices=' if --verbose. But I should remove it in
other cases. Thanks.
NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html