GNU bug report logs - #25813
Alignment check should not be done to the end of the partition

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: Harald Dunkel <harald.dunkel@HIDDEN>; dated Mon, 20 Feb 2017 15:51:01 UTC; Maintainer for parted is bug-parted@HIDDEN.
Changed bug title to 'Alignment check should not be done to the end of the partition' from 'parted should tell which partition is misaligned' Request was from Phil Susi <psusi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 25813) by debbugs.gnu.org; 19 Apr 2017 13:09:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 19 09:09:33 2017
Received: from localhost ([127.0.0.1]:55684 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1d0pMT-0005ub-3o
	for submit <at> debbugs.gnu.org; Wed, 19 Apr 2017 09:09:33 -0400
Received: from mail-ua0-f193.google.com ([209.85.217.193]:33484)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <phillsusi@HIDDEN>)
 id 1d0pMR-0005uK-Fv; Wed, 19 Apr 2017 09:09:31 -0400
Received: by mail-ua0-f193.google.com with SMTP id f10so2138402uaa.0;
 Wed, 19 Apr 2017 06:09:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:from:subject:to:references:message-id:date:user-agent
 :mime-version:in-reply-to:content-transfer-encoding;
 bh=mYf3xg6X1PCtA3ft7bICLgvKcbF70EghEz+lKpso36Q=;
 b=SgxpJ0alfF6fhK3wIij7I10C/UoAWhtCuABOZ1ZgImNfJ1V+v35yryH02+HuuQ+ndq
 LjqpQQ+8QqxUNv1ftiDFnp8GaoMTKrTecn/1L0wnwX6lqB+HF8mzd45fM1TSMYCIb1Z6
 5IfFiepQUmVDxcCtoV2+LwZDeKTJOTqRwwFGCx9XCCVdIwKWauheSnIdAD/Q9KEOTX5R
 4KPLxmGNf/RdTZiKDLXNRP0M6ssmeANV2GMvK5CC+9yhIJUuTkTI0RERW0YWR5mFRRTJ
 TCwWa1b0xk0jnQH8qHCs2Udqdup1X09F7uEWyQnRn73YDDeHQWdhmMmq8TONZSsn6y1p
 k9tA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:from:subject:to:references:message-id
 :date:user-agent:mime-version:in-reply-to:content-transfer-encoding;
 bh=mYf3xg6X1PCtA3ft7bICLgvKcbF70EghEz+lKpso36Q=;
 b=h2yj6qD0/kvRwEW5arTGnfbY+r+cjBD7OzwM89TO5xTH0ij+v2dtGr6+nuifRCm9p6
 yvskDhlPluruVnXQ9CfVC4eYIqzvQrz8a3TAqtLimfKg5VKpIslNqK56zbg1eYWqXmvg
 jbeNC5QWCOfAattjr2bNTOd7QQLUCO1H/YcKFyoe+v+Ra6zMoYeVwPKeSJvh63boWGLS
 7tivQ9HgW0GzsszECLOKu++gkHuNAspd/iBk89gLuUQ67V2Hr2cNOZZbyRFi352CMez2
 sPqKONdypujHILVJZ3ISUE5dQJeiOoANWz7d/O/zU+evROJtz5TNQZp4JPrGYa/dSTLY
 nKqQ==
X-Gm-Message-State: AN3rC/4s2E5Uk9BQCf0bYW6clnGdJa9YjFCCwHdML7gS0PrU9069IOaW
 NElog0agcsOitQ+KxN4=
X-Received: by 10.31.174.4 with SMTP id x4mr1194792vke.136.1492607365912;
 Wed, 19 Apr 2017 06:09:25 -0700 (PDT)
Received: from [10.1.1.184] (fl-67-77-88-12.sta.embarqhsd.net. [67.77.88.12])
 by smtp.googlemail.com with ESMTPSA id
 i12sm83449vka.18.2017.04.19.06.09.24
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 19 Apr 2017 06:09:25 -0700 (PDT)
From: Phil Susi <psusi@HIDDEN>
Subject: Re: bug#25813: parted should tell which partition is misaligned
To: Harald Dunkel <harald.dunkel@HIDDEN>, 25813 <at> debbugs.gnu.org
References: <bdbf46c2-141c-4a09-529b-fe1e07bd2913@HIDDEN>
Message-ID: <1f5f1d27-be86-db78-d4eb-40614e2c3153@HIDDEN>
Date: Wed, 19 Apr 2017 09:11:08 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <bdbf46c2-141c-4a09-529b-fe1e07bd2913@HIDDEN>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 25813
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
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: 0.7 (/)

retitle 25813 Alignment check should not be done to the end of the partition
thanks

On 2/20/2017 10:50 AM, Harald Dunkel wrote:
> Hi folks,
> 
> parted 3.2-17 (Debian Unstable) doesn't tell which partition
> is misaligned. Sample session:

> (parted) mkpart export 671088640s -2049s
> Warning: The resulting partition is not properly aligned for best performance.
> Ignore/Cancel? i

It is, of course, referring to the one you are trying to create.  Its
end point is not aligned.  Of course, there isn't much point to the end
being aligned so maybe we should only be checking the start.





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

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


Received: (at submit) by debbugs.gnu.org; 20 Feb 2017 15:50:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 20 10:50:38 2017
Received: from localhost ([127.0.0.1]:47677 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cfqEX-0004zD-UT
	for submit <at> debbugs.gnu.org; Mon, 20 Feb 2017 10:50:38 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53771)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <harald.dunkel@HIDDEN>) id 1cfqEW-0004yx-Lu
 for submit <at> debbugs.gnu.org; Mon, 20 Feb 2017 10:50:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <harald.dunkel@HIDDEN>) id 1cfqEQ-0007OW-FA
 for submit <at> debbugs.gnu.org; Mon, 20 Feb 2017 10:50:31 -0500
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]:43423)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <harald.dunkel@HIDDEN>)
 id 1cfqEQ-0007OS-C4
 for submit <at> debbugs.gnu.org; Mon, 20 Feb 2017 10:50:30 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44741)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <harald.dunkel@HIDDEN>) id 1cfqEP-0002MF-1v
 for bug-parted@HIDDEN; Mon, 20 Feb 2017 10:50:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <harald.dunkel@HIDDEN>) id 1cfqEL-0007Nd-VG
 for bug-parted@HIDDEN; Mon, 20 Feb 2017 10:50:29 -0500
Received: from mail.aixigo.de ([5.145.142.10]:11450)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <harald.dunkel@HIDDEN>)
 id 1cfqEL-00078U-KP
 for bug-parted@HIDDEN; Mon, 20 Feb 2017 10:50:25 -0500
Received: from srvvm01.ac.aixigo.de (mail.ac.aixigo.de [172.19.96.11])
 by gate5a.ac.aixigo.de (OpenSMTPD) with ESMTPS id ccc8c491
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO)
 for <bug-parted@HIDDEN>; Mon, 20 Feb 2017 16:50:01 +0100 (CET)
Received: from dpcl082.ac.aixigo.de (dpcl082.ac.aixigo.de [172.19.97.128])
 by srvvm01.ac.aixigo.de (8.14.4/8.14.4/Debian-8+deb8u1) with ESMTP id
 v1KFo0lm103606; Mon, 20 Feb 2017 16:50:01 +0100
To: bug-parted@HIDDEN
From: Harald Dunkel <harald.dunkel@HIDDEN>
Subject: parted should tell which partition is misaligned
Message-ID: <bdbf46c2-141c-4a09-529b-fe1e07bd2913@HIDDEN>
Date: Mon, 20 Feb 2017 16:50:00 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.99.2 at srvvm01.ac.aixigo.de
X-Virus-Status: Clean
X-detected-operating-system: by eggs.gnu.org: OpenBSD 4.x-5.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
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.18
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 (-----)

Hi folks,

parted 3.2-17 (Debian Unstable) doesn't tell which partition
is misaligned. Sample session:

# parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) u s p
Model: AVAGO MR9361-8i (scsi)
Disk /dev/sda: 23438819328s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start       End           Size          File system     Name       Flags
 1      63s         2047s         1985s                         bios_grub  bios_grub
 2      2048s       524287s       522240s       fat16           efi_boot
 3      524288s     67108863s     66584576s     ext4            root
 4      67108864s   603979775s    536870912s    linux-swap(v1)  swap
 5      603979776s  671088639s    67108864s     ext4            none
 6      671088640s  23438817279s  22767728640s  ext4            export

(parted) rm 6
(parted) mkpart export 671088640s -2049s
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? i
(parted) q
Information: You may need to update /etc/fstab.


Partition 6 is perfectly aligned (320 MiB), so the warning
is very misleading. How about a message like

Warning: Partition 1 is not properly aligned for best performance.


Regards
Harri




Acknowledgement sent to Harald Dunkel <harald.dunkel@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-parted@HIDDEN. Full text available.
Report forwarded to bug-parted@HIDDEN:
bug#25813; 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: Mon, 25 Nov 2019 12:00:02 UTC

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