bug-parted
[Top][All Lists]
Advanced

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

bug#20269: Disk size is written on STDERR if the disk label is unrecogni


From: Brian C. Lane
Subject: bug#20269: Disk size is written on STDERR if the disk label is unrecognised
Date: Tue, 7 Apr 2015 16:15:13 -0700
User-agent: Mutt/1.5.23 (2014-03-12)

On Tue, Apr 07, 2015 at 11:53:52AM +0200, Johan Oudinet wrote:
> Hi,
> 
> $ sudo parted --script --machine /dev/sdd unit s print
> Error: /dev/sdd: unrecognised disk label
> BYT;
> /dev/sdd:7744512s:scsi:512:512:unknown:Generic STORAGE DEVICE:;
> 
> The two last lines are printed in the standard error output instead of
> the normal input. Because of that, I must redirect the standard error to
> the standard output in order to read the disk size.
> IMO, only the error message about the unrecognised disk label should be
> printed on the standard error.

Are you sure? The code handling that is pretty straightforward:

https://github.com/bcl/parted/blob/master/parted/parted.c#L986

puts and printf, no stderr involved.


-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]