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

Johan Oudinet <[email protected]>
Newsgroups gmane.comp.gnu.parted.bugs
Organization Green Communications
Message-ID <[email protected]>
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.

$ parted --version
parted (GNU parted) 3.2
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by
<http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.


Best regards,
-- 
Johan Oudinet
R&D Engineer - Green Communications
[email protected]
signature.asc (application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJVI6kwAAoJEDzKzBvsE+7UnW8H/1D/6YHXBg7zumRkWSDTu8GB
YtRluzcNVRDLYtPion3sUkhFbo0izZZmVWNxh0NdySzRohXlUFpHD4i6POt9PnXU
4O2QKaNazNOCdlep6lIVhpaLopoFsNnsVg8eRCM/PXzmQWJwmuSf+jJjcBkWA+eA
KtQSOcrTGNOhaNHKqkXSqiXxrW9NfqFzig12pgO42ekDGzmwwW47hpSg4my2nCoM
Vji/k5Exwp/jcLGcaXaHMowwXBaWWpeFIjLfoxJ07ltRrNP+xS0NIwd4RTkm3EgW
/y94TO9jGSjU20O7kcyka6DkUiWsOoKtMxDmjZYDz3E1myntmZXwwDwgp6LsmIU=
=Kbfo
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.