Skip to contentSkip to conversation

what precisely is partition_entry_lba?

DISCUSSION Benno Schulenberg 2 participants 3 messages Sep 22, 2014 – Oct 1, 2014 Util-Linux package

lore
Share & tools
lore
#0 lore raw

Hi,

In libfdisk/src/gpt.c the function gpt_list_disklabel() prints a GPT header, and one of the things it prints says:

_("Partitions entries LBA: %ju"), h->partition_entry_lba

In the struct this variable is described as:

uint64_t partition_entry_lba; /* stat LBA of the partition entry array */

This doesn't make sense to me. Shouldn't this say something like "Starting block of the array of partition entries" instead?

All this use of 'lba' is confusing to me, as it stands for "logical block addressing", and what seems to be meant is simply "logical block" or "logical block number". No?

Benno

Signature · 1 line
http://www.fastmail.fm - The way an email service should be
maintainer
#1 lore raw
Quoted 6 lines · Benno Schulenberg

Hi,

In libfdisk/src/gpt.c the function gpt_list_disklabel() prints a GPT header, and one of the things it prints says:

Quoted 8 lines

_("Partitions entries LBA: %ju"), h->partition_entry_lba

In the struct this variable is described as:

uint64_t partition_entry_lba; /* stat LBA of the partition entry array */

This doesn't make sense to me. Shouldn't this say something like "Starting block of the array of partition entries" instead?

EFI standard:

"The start of the GPT Partition Entry Array is located at the LBA
indicated by the Partition Entry LBA field."

Quoted 3 lines

All this use of 'lba' is confusing to me, as it stands for "logical block addressing", and what seems to be meant is simply "logical block" or "logical block number". No?

Well, "LBA" is usually used as unit (especially in storage slang). Don't think about it as about abbreviation :-)

IMHO the fdisk message "Partitions entries LBA: %ju" is fine, it's better to follow commonly terminology.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
#2 lore raw
Quoted 10 lines · Karel Zak
Quoted 4 lines · Benno Schulenberg

uint64_t partition_entry_lba; /* stat LBA of the partition entry array */

This doesn't make sense to me. Shouldn't this say something like "Starting block of the array of partition entries" instead?

EFI standard:

"The start of the GPT Partition Entry Array is located at the LBA
indicated by the Partition Entry LBA field."

Okay. Then at least the relevant comment needs to be typo-fixed. (Upcoming patch will do also that.)

Quoted 6 lines
Quoted 3 lines

All this use of 'lba' is confusing to me, as it stands for "logical block addressing", and what seems to be meant is simply "logical block" or "logical block number". No?

Well, "LBA" is usually used as unit (especially in storage slang). Don't think about it as about abbreviation :-)

I can't -- my brain always auto-expands abbrevs. :)

Well, I will just have to expand it as "Logical Block Address", even though the word "Address" is completely superfluous.

Quoted 1 line

IMHO the fdisk message "Partitions entries LBA: %ju" is fine,

Not quite. It would have to be either "Partitions entry" (where one entry contains several paritions) or "Partition entries), where each entry contains one partition, which is of course the case); "Partitions entries" is nonsense in English. Upcoming patch makes the correction.

Benno

Signature · 2 lines
http://www.fastmail.fm - Access all of your messages and folders
                          wherever you are