Received: (at submit) by debbugs.gnu.org; 7 Apr 2015 23:15:31 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 07 19:15:31 2015 Received: from localhost ([127.0.0.1]:48368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1YfciQ-0000BS-RI for submit <at> debbugs.gnu.org; Tue, 07 Apr 2015 19:15:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59456) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <bcl@HIDDEN>) id 1YfciN-0000BB-Tb for submit <at> debbugs.gnu.org; Tue, 07 Apr 2015 19:15:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bcl@HIDDEN>) id 1YfciH-0008Iq-6n for submit <at> debbugs.gnu.org; Tue, 07 Apr 2015 19:15:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <bcl@HIDDEN>) id 1YfciH-0008Ij-3u for submit <at> debbugs.gnu.org; Tue, 07 Apr 2015 19:15:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <bcl@HIDDEN>) id 1YfciG-00076o-5Y for bug-parted@HIDDEN; Tue, 07 Apr 2015 19:15:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <bcl@HIDDEN>) id 1YfciC-0008I2-S1 for bug-parted@HIDDEN; Tue, 07 Apr 2015 19:15:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <bcl@HIDDEN>) id 1YfciC-0008Hu-ML for bug-parted@HIDDEN; Tue, 07 Apr 2015 19:15:16 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 814D58E767 for <bug-parted@HIDDEN>; Tue, 7 Apr 2015 23:15:15 +0000 (UTC) Received: from lister.brianlane.com (ovpn-113-119.phx2.redhat.com [10.3.113.119]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t37NFDUH022049 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <bug-parted@HIDDEN>; Tue, 7 Apr 2015 19:15:15 -0400 Date: Tue, 7 Apr 2015 16:15:13 -0700 From: "Brian C. Lane" <bcl@HIDDEN> To: bug-parted@HIDDEN Subject: Re: bug#20269: Disk size is written on STDERR if the disk label is unrecognised Message-ID: <20150407231513.GV13638@HIDDEN> References: <5523A930.6040600@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5523A930.6040600@HIDDEN> User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) 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)
bug-parted@HIDDEN
:bug#20269
; Package parted
.
Full text available.Received: (at submit) by debbugs.gnu.org; 7 Apr 2015 09:54:09 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 07 05:54:09 2015 Received: from localhost ([127.0.0.1]:46981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1YfQCu-0003H3-SQ for submit <at> debbugs.gnu.org; Tue, 07 Apr 2015 05:54:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51840) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <johan.oudinet@HIDDEN>) id 1YfQCs-0003GX-5u for submit <at> debbugs.gnu.org; Tue, 07 Apr 2015 05:54:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <johan.oudinet@HIDDEN>) id 1YfQCl-0006fA-Od for submit <at> debbugs.gnu.org; Tue, 07 Apr 2015 05:54:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <johan.oudinet@HIDDEN>) id 1YfQCl-0006f4-LK for submit <at> debbugs.gnu.org; Tue, 07 Apr 2015 05:53:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <johan.oudinet@HIDDEN>) id 1YfQCk-0006U2-L8 for bug-parted@HIDDEN; Tue, 07 Apr 2015 05:53:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <johan.oudinet@HIDDEN>) id 1YfQCh-0006eT-TL for bug-parted@HIDDEN; Tue, 07 Apr 2015 05:53:58 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:56452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <johan.oudinet@HIDDEN>) id 1YfQCh-0006eI-JP for bug-parted@HIDDEN; Tue, 07 Apr 2015 05:53:55 -0400 Received: from [192.168.1.131] ([193.51.194.209]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MGRCi-1Yb0LJ00bw-00DE2U for <bug-parted@HIDDEN>; Tue, 07 Apr 2015 11:53:53 +0200 Message-ID: <5523A930.6040600@HIDDEN> Date: Tue, 07 Apr 2015 11:53:52 +0200 From: Johan Oudinet <johan.oudinet@HIDDEN> Organization: Green Communications User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: bug-parted@HIDDEN Subject: Disk size is written on STDERR if the disk label is unrecognised Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HvoFlHG9IcGEVEBfVcV8tfu6sMvAIPdA6" X-Provags-ID: V03:K0:FxC2BYbc0C4rvhn2H909d93/JzcHB+n9oS4VkDZyj1xkg03Ogh0 B8PZF3RyOp+Lr5O8lpHhBHPCSQ04XmXWEM2gwSTf0ywYmqQLzRmudgTP679ijJOJIdeSyEb Zooa0P2w2poKGB7GPBqmPbLF32j0SyNdlr0sf40En0YFi680BHSaW15ZrOpVBQx17DzpaYY qkv/XYNaj4pL9s/3BRBjw== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HvoFlHG9IcGEVEBfVcV8tfu6sMvAIPdA6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=3Dparted/parted.git;a=3Dblob_plain;f=3DAUTHORS>= =2E Best regards, --=20 Johan Oudinet R&D Engineer - Green Communications johan.oudinet@HIDDEN --HvoFlHG9IcGEVEBfVcV8tfu6sMvAIPdA6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----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----- --HvoFlHG9IcGEVEBfVcV8tfu6sMvAIPdA6--
Johan Oudinet <johan.oudinet@HIDDEN>
:bug-parted@HIDDEN
.
Full text available.bug-parted@HIDDEN
:bug#20269
; Package parted
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.