GNU bug report logs - #17107
[PATCH 2/4] tests: Fix the t0281 test to respond to the backup GPT location question

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: parted; Reported by: "Brian C. Lane" <bcl@HIDDEN>; Keywords: patch; dated Wed, 26 Mar 2014 18:34:05 UTC; Maintainer for parted is bug-parted@HIDDEN.

Message received at 17107 <at> debbugs.gnu.org:


Received: (at 17107) by debbugs.gnu.org; 27 Mar 2014 15:02:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 27 11:02:53 2014
Received: from localhost ([127.0.0.1]:52877 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WTBpV-0000k6-6f
	for submit <at> debbugs.gnu.org; Thu, 27 Mar 2014 11:02:53 -0400
Received: from mx1.redhat.com ([209.132.183.28]:51205)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bcl@HIDDEN>) id 1WTBpP-0000jr-L8
 for 17107 <at> debbugs.gnu.org; Thu, 27 Mar 2014 11:02:49 -0400
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
 (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23])
 by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2RF2ib9024357
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Thu, 27 Mar 2014 11:02:45 -0400
Received: from lister.brianlane.com (ovpn-113-57.phx2.redhat.com [10.3.113.57])
 by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 s2RF2hVh030726
 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO);
 Thu, 27 Mar 2014 11:02:44 -0400
Date: Thu, 27 Mar 2014 08:02:43 -0700
From: "Brian C. Lane" <bcl@HIDDEN>
To: Phillip Susi <psusi@HIDDEN>
Subject: Re: bug#17107: [PATCH 2/4] tests: Fix the t0281 test to respond to
 the backup GPT location question
Message-ID: <20140327150243.GJ12726@HIDDEN>
References: <1395856582-25064-1-git-send-email-bcl@HIDDEN>
 <1395856582-25064-3-git-send-email-bcl@HIDDEN>
 <53338CB0.5030204@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <53338CB0.5030204@HIDDEN>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-Spam-Score: -5.4 (-----)
X-Debbugs-Envelope-To: 17107
Cc: 17107 <at> debbugs.gnu.org
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: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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.4 (-----)

On Wed, Mar 26, 2014 at 10:28:00PM -0400, Phillip Susi wrote:
> On 03/26/2014 01:56 PM, Brian C. Lane wrote:
> > This fixes the test so that it will fix the backup GPT location as
> > well as expand move the LastUsableLBA to cover the larger disk.
> > 
> > * tests/t0281-gpt-grow.sh: Add backup GPT prompt
> 
> This test doesn't currently fail for me.  Perhaps this is a regression
> resulting from your first patch in this series?

It is a side-effect of fixing the first thing. You are prompted to fix
the backup and then prompted to expand the amount of disk covered by
First/LastUsableLBA

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




Information forwarded to bug-parted@HIDDEN:
bug#17107; Package parted. Full text available.

Message received at 17107 <at> debbugs.gnu.org:


Received: (at 17107) by debbugs.gnu.org; 27 Mar 2014 02:28:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 26 22:28:05 2014
Received: from localhost ([127.0.0.1]:51575 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WT032-0003U0-F0
	for submit <at> debbugs.gnu.org; Wed, 26 Mar 2014 22:28:04 -0400
Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.120]:35897)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <psusi@HIDDEN>) id 1WT02z-0003Ta-Dz
 for 17107 <at> debbugs.gnu.org; Wed, 26 Mar 2014 22:28:02 -0400
X-Authority-Analysis: v=2.0 cv=S8pbMfQP c=1 sm=0 a=S/gQ7PeTrZbCJAhh99lbaw==:17
 a=3C7RHhrQF8gA:10 a=FKU4Tsh43SAA:10 a=S1A5HrydsesA:10 a=ossw24rp0ecA:10
 a=8nJEP1OIZ-IA:10 a=fxJcL_dCAAAA:8 a=KGjhK52YXX0A:10 a=QfKxxUxMAAAA:8
 a=WMiVXP5xUsyIveQATRIA:9 a=wPNLvfGTeEIA:10 a=S/gQ7PeTrZbCJAhh99lbaw==:117
X-Cloudmark-Score: 0
X-Authenticated-User: 
X-Originating-IP: 72.238.67.160
Received: from [72.238.67.160] ([72.238.67.160:44362] helo=[192.168.1.101])
 by cdptpa-oedge01.mail.rr.com (envelope-from <psusi@HIDDEN>)
 (ecelerity 2.2.3.46 r()) with ESMTP
 id A5/D4-17312-EAC83335; Thu, 27 Mar 2014 02:27:58 +0000
Message-ID: <53338CB0.5030204@HIDDEN>
Date: Wed, 26 Mar 2014 22:28:00 -0400
From: Phillip Susi <psusi@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: "Brian C. Lane" <bcl@HIDDEN>, 17107 <at> debbugs.gnu.org
Subject: Re: bug#17107: [PATCH 2/4] tests: Fix the t0281 test to respond to
 the backup GPT location question
References: <1395856582-25064-1-git-send-email-bcl@HIDDEN>
 <1395856582-25064-3-git-send-email-bcl@HIDDEN>
In-Reply-To: <1395856582-25064-3-git-send-email-bcl@HIDDEN>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 17107
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: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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: 0.0 (/)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 03/26/2014 01:56 PM, Brian C. Lane wrote:
> This fixes the test so that it will fix the backup GPT location as
> well as expand move the LastUsableLBA to cover the larger disk.
> 
> * tests/t0281-gpt-grow.sh: Add backup GPT prompt

This test doesn't currently fail for me.  Perhaps this is a regression
resulting from your first patch in this series?


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJTM4ywAAoJEI5FoCIzSKrw90AH/0WICnLNxsa5qQRfaFdBXHnE
z3Wutv32O9FzDa1YqkgbiwbOvR6Kgf5FXu777glQVKgxUtIpi7ewwpzwzAIZtykR
98F18/PMcMcv07aelb6d9O+nXDM/0/jujopx4vaWtiQlUbs6cmghhZAevryMWN/m
8uKmc/DR7KA7Osk5/6239xGdCV9iei/CtANT45//NH+DU8lxyCTgrYoSyeIzi208
IdSrwSKLa3qilIEhQNE1lQdr0VbwuYGLp1G1BLN4LXHz6bofTpOPU5e46VBvOA3w
8r5EM56+6SOMRQMehe7qA1+hhE5mOYnFXglrz75eYq2RwyZDBm2cuauRNu9KxkI=
=nhpx
-----END PGP SIGNATURE-----




Information forwarded to bug-parted@HIDDEN:
bug#17107; Package parted. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Mar 2014 18:33:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 26 14:33:56 2014
Received: from localhost ([127.0.0.1]:51322 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WSseB-0007PG-Ig
	for submit <at> debbugs.gnu.org; Wed, 26 Mar 2014 14:33:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57801)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bcl@HIDDEN>) id 1WSsdy-0007OX-P1
 for submit <at> debbugs.gnu.org; Wed, 26 Mar 2014 14:33:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1WSsds-00031Z-6D
 for submit <at> debbugs.gnu.org; Wed, 26 Mar 2014 14:33:42 -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]:36443)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1WSsds-00031T-4A
 for submit <at> debbugs.gnu.org; Wed, 26 Mar 2014 14:33:36 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59434)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1WSsdm-0008It-PW
 for bug-parted@HIDDEN; Wed, 26 Mar 2014 14:33:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1WSsdf-0002wP-0x
 for bug-parted@HIDDEN; Wed, 26 Mar 2014 14:33:30 -0400
Received: from neil.brianlane.com ([24.113.37.65]:34465)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1WSsde-0002tq-RO
 for bug-parted@HIDDEN; Wed, 26 Mar 2014 14:33:22 -0400
Received: by neil.brianlane.com (Postfix, from userid 1000)
 id 4C7E21005930E9; Wed, 26 Mar 2014 10:56:23 -0700 (PDT)
From: "Brian C. Lane" <bcl@HIDDEN>
To: bug-parted@HIDDEN
Subject: [PATCH 2/4] tests: Fix the t0281 test to respond to the backup GPT
 location question
Date: Wed, 26 Mar 2014 10:56:20 -0700
Message-Id: <1395856582-25064-3-git-send-email-bcl@HIDDEN>
X-Mailer: git-send-email 1.8.5.3
In-Reply-To: <1395856582-25064-1-git-send-email-bcl@HIDDEN>
References: <1395856582-25064-1-git-send-email-bcl@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-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: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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 fixes the test so that it will fix the backup GPT location as well
as expand move the LastUsableLBA to cover the larger disk.

* tests/t0281-gpt-grow.sh: Add backup GPT prompt
---
 tests/t0281-gpt-grow.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/t0281-gpt-grow.sh b/tests/t0281-gpt-grow.sh
index e373578..44a743b 100644
--- a/tests/t0281-gpt-grow.sh
+++ b/tests/t0281-gpt-grow.sh
@@ -53,6 +53,7 @@ mv out o2 && sed -e "s,/.*/$dev,DEVICE,;s,
   *
,,g;s, $,," \
 
 # check for expected diagnostic
 cat <<EOF > exp || fail=1
+Error: The backup GPT table is not at the end of the disk, as it should be.  Fix, by moving the backup to the end (and removing the old backup)?
 Warning: Not all of the space available to DEVICE appears to be used, you can fix the GPT to use all of the space (an extra 500 blocks) or continue with the current setting?
 Model:  (file)
 Disk DEVICE: 2816kB
@@ -66,7 +67,7 @@ EOF
 compare exp out || fail=1
 
 # now we fix
-printf 'f\n' | parted ---pretend-input-tty $dev print > out 2>&1 || fail=1
+printf 'f\nf\n' | parted ---pretend-input-tty $dev print > out 2>&1 || fail=1
 
 # Transform the actual output, to avoid spurious differences when
 # $PWD contains a symlink-to-dir.  Also, remove the ^M      ...^M bogosity.
@@ -76,6 +77,8 @@ mv out o2 && sed -e "s,/.*/$dev,DEVICE,;s,
   *
,,g;s, $,," \
 
 # check for expected diagnostic
 cat <<EOF > exp || fail=1
+Error: The backup GPT table is not at the end of the disk, as it should be.  Fix, by moving the backup to the end (and removing the old backup)?
+Fix/Ignore? f
 Warning: Not all of the space available to DEVICE appears to be used, you can fix the GPT to use all of the space (an extra 500 blocks) or continue with the current setting?
 Fix/Ignore? f
 Model:  (file)
-- 
1.8.5.3





Acknowledgement sent to "Brian C. Lane" <bcl@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-parted@HIDDEN. Full text available.
Report forwarded to bug-parted@HIDDEN:
bug#17107; Package parted. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.