Re: [PATCH] mdadm: Send version text to stdout rather than stderr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/06/2017 09:44 PM, NeilBrown wrote:
On Tue, Jun 06 2017, Zhilong Liu wrote:

This helps with piping to a paper.

It might help you, but it is an API change and could cause problems for
others.

Some programs, such as "mount -V", send version info to stdout.
Others, like "gcc -v", send it to stderr.
There is no uniform standard, it is best to leave the behavior
unchanged.

If you need to capture the output use
    mdadm -V |& ...
or
    mdadm -V 2>&1

or similar.

NeilBrtown

I agree with mr Brtown here :)

Changing the API is a big issue. We need to avoid this unless it is absolutely necessary, so we don't break things for people trying to run newer mdadm on older distros or those relying on third party scripts.

Jes
--
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



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux