GNU bug report logs - #24448
Interpretation of partition entry sizes on "4kn" disks

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: Cris Perdue <cris.perdue@HIDDEN>; dated Thu, 15 Sep 2016 21:55:01 UTC; Maintainer for parted is bug-parted@HIDDEN.

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


Received: (at 24448) by debbugs.gnu.org; 19 Sep 2016 16:15:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 19 12:15:54 2016
Received: from localhost ([127.0.0.1]:35285 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bm1EY-0006Qq-BD
	for submit <at> debbugs.gnu.org; Mon, 19 Sep 2016 12:15:54 -0400
Received: from mx1.redhat.com ([209.132.183.28]:55106)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bcl@HIDDEN>) id 1bm1EX-0006Qi-BX
 for 24448 <at> debbugs.gnu.org; Mon, 19 Sep 2016 12:15:53 -0400
Received: from int-mx13.intmail.prod.int.phx2.redhat.com
 (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mx1.redhat.com (Postfix) with ESMTPS id D71E510550;
 Mon, 19 Sep 2016 16:15:51 +0000 (UTC)
Received: from lister.brianlane.com (ovpn-112-106.phx2.redhat.com
 [10.3.112.106])
 by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 u8JGFmRt025813
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO);
 Mon, 19 Sep 2016 12:15:50 -0400
Date: Mon, 19 Sep 2016 09:15:48 -0700
From: "Brian C. Lane" <bcl@HIDDEN>
To: Cris Perdue <cris.perdue@HIDDEN>
Subject: Re: bug#24448: Interpretation of partition entry sizes on "4kn" disks
Message-ID: <20160919161548.GB23565@HIDDEN>
References: <CAOoe=WK4ZFiV9EFSSq8R3njT+gJsjXBTSK6uFPvntR2Xu5NZ6g@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAOoe=WK4ZFiV9EFSSq8R3njT+gJsjXBTSK6uFPvntR2Xu5NZ6g@HIDDEN>
User-Agent: Mutt/1.7.0 (2016-08-17)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
 (mx1.redhat.com [10.5.110.25]); Mon, 19 Sep 2016 16:15:52 +0000 (UTC)
X-Spam-Score: -8.1 (--------)
X-Debbugs-Envelope-To: 24448
Cc: 24448 <at> debbugs.gnu.org
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: -8.1 (--------)

On Thu, Sep 15, 2016 at 01:54:37PM -0700, Cris Perdue wrote:
> In partition tables, GPT entries specifically, there are 8 byte fields for
> the first and last LBA of the partition. Traditionally logical blocks are
> 512 bytes, but some new disks report sector sizes of up to 4096 bytes as
> both logical and physical sector size.  For these so-called 4kn disks,
> should the partition table entries be interpreted as representing units of
> 4096 bytes, or does the magic number 512 still apply to their partition
> table entries?

LBA always  refers to the drive's block size. So it may be 512 or 4096
or some other value, depending on what the drive reports.

-- 
Brian C. Lane | Port Orchard, WA (PST8PDT)




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

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


Received: (at submit) by debbugs.gnu.org; 15 Sep 2016 21:54:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 15 17:54:38 2016
Received: from localhost ([127.0.0.1]:60823 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bkecA-0001Th-Cf
	for submit <at> debbugs.gnu.org; Thu, 15 Sep 2016 17:54:38 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55297)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cris.perdue@HIDDEN>) id 1bkdgf-0008Uj-2C
 for submit <at> debbugs.gnu.org; Thu, 15 Sep 2016 16:55:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cris.perdue@HIDDEN>) id 1bkdgY-00065x-At
 for submit <at> debbugs.gnu.org; Thu, 15 Sep 2016 16:55:08 -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,FREEMAIL_FROM,
 HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:35609)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cris.perdue@HIDDEN>) id 1bkdgY-00064z-8H
 for submit <at> debbugs.gnu.org; Thu, 15 Sep 2016 16:55:06 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46204)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cris.perdue@HIDDEN>) id 1bkdgV-0001ck-75
 for bug-parted@HIDDEN; Thu, 15 Sep 2016 16:55:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cris.perdue@HIDDEN>) id 1bkdgS-00060S-E2
 for bug-parted@HIDDEN; Thu, 15 Sep 2016 16:55:02 -0400
Received: from mail-it0-x229.google.com ([2607:f8b0:4001:c0b::229]:36772)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cris.perdue@HIDDEN>) id 1bkdgS-0005jp-9V
 for bug-parted@HIDDEN; Thu, 15 Sep 2016 16:55:00 -0400
Received: by mail-it0-x229.google.com with SMTP id o3so2425830ita.1
 for <bug-parted@HIDDEN>; Thu, 15 Sep 2016 13:54:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:from:date:message-id:subject:to;
 bh=HKWPIw7Y/so9iAnHq/s4KB5gKSwLA1ADJrnM5H7eroA=;
 b=ncnxZJSWj9LWa7sH5FCeZEWzDct96oIplb4kRb3tkoHbHHz/DtqXCaMLm0+4kBqajH
 ELmWUbkjV+6a/wVEI647awyZGrWs1uuF36jdBCUhSqMErYZPLJvnCy2RbvO3GY8ndDsR
 I566qHTpmTlIOAhgP4w09AGjs3Q2f8A95YeyRfFZYFhU360nEZFh154IujvVuWLayRvO
 Dc0l/FcXm0SPiljq5txKRoK7RVAXw/+tFplusYYwIjUHlDbAPxXx63g3DO2V7WJx7XIf
 ytXDRU1thYOFhNtGneW0JrlIiQ80Lo+ff9fIqYPCaHTONI53kNsTDGSCQ/2fT8uQKj2K
 WZHQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=HKWPIw7Y/so9iAnHq/s4KB5gKSwLA1ADJrnM5H7eroA=;
 b=GPpy1skUigY5ZxaA1IHpRJowiXUHyb0H0ccqWuCUEdXRF9i/FJmP1j5/PddCn/9OUP
 W7zYqvS9HDgsTB3RiTh95uukVhxu7VlS2A/jMbM6MTYEPfhFkYfkSXXbFzgwJRZJDJnq
 MSlj4zGihSdGkMrpGH+ickinkgnHdL2GKUm5EXct3uZqIEAA7nF2Wp6WU+TRur8twyqg
 UhCYXPwVPv1GKxiMeJkSauokNCsesCbLmAJ1TSwDZx/zlQr+e3nZxoaZEnxdjmoOtHFO
 7OMZG5YCZYzLQjJRYzXRkMbfGLektH0GGe/vljxy3F6jbgw06WPACWDGPEpB4qc71i/e
 01sQ==
X-Gm-Message-State: AE9vXwM8aZUs0r4Xzs5l1vQivIAj8n8nBTJY6EsdF1GVN26sjIiK1lWOiwd9haoAEyD8D6srzBbbN7AsPGemYQ==
X-Received: by 10.36.34.204 with SMTP id o195mr1863345ito.29.1473972878244;
 Thu, 15 Sep 2016 13:54:38 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.34.147 with HTTP; Thu, 15 Sep 2016 13:54:37 -0700 (PDT)
From: Cris Perdue <cris.perdue@HIDDEN>
Date: Thu, 15 Sep 2016 13:54:37 -0700
Message-ID: <CAOoe=WK4ZFiV9EFSSq8R3njT+gJsjXBTSK6uFPvntR2Xu5NZ6g@HIDDEN>
Subject: Interpretation of partition entry sizes on "4kn" disks
To: bug-parted@HIDDEN
Content-Type: multipart/alternative; boundary=001a11405748d100db053c920d23
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 15 Sep 2016 17:54:37 -0400
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: -4.0 (----)

--001a11405748d100db053c920d23
Content-Type: text/plain; charset=UTF-8

In partition tables, GPT entries specifically, there are 8 byte fields for
the first and last LBA of the partition. Traditionally logical blocks are
512 bytes, but some new disks report sector sizes of up to 4096 bytes as
both logical and physical sector size.  For these so-called 4kn disks,
should the partition table entries be interpreted as representing units of
4096 bytes, or does the magic number 512 still apply to their partition
table entries?

I have been having a hard time determining which would be the expected
interpretation.

Thanks much,
Cris

--001a11405748d100db053c920d23
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">In partition tables, GPT entries specifically, there are 8=
 byte fields for the first and last LBA of the partition. Traditionally log=
ical blocks are 512 bytes, but some new disks report sector sizes of up to =
4096 bytes as both logical and physical sector size.=C2=A0 For these so-cal=
led 4kn disks, should the partition table entries be interpreted as represe=
nting units of 4096 bytes, or does the magic number 512 still apply to thei=
r partition table entries?<div><br></div><div>I have been having a hard tim=
e determining which would be the expected interpretation.</div><div><br></d=
iv><div>Thanks much,</div><div>Cris</div><div><br></div></div>

--001a11405748d100db053c920d23--




Acknowledgement sent to Cris Perdue <cris.perdue@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-parted@HIDDEN. Full text available.
Report forwarded to bug-parted@HIDDEN:
bug#24448; 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.