]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: (gpt) make fdisk -x output more readable
authorKarel Zak <kzak@redhat.com>
Thu, 6 Jan 2022 13:52:50 +0000 (14:52 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 6 Jan 2022 13:57:32 +0000 (14:57 +0100)
The field "First LBA" is confusing; let's use "First usable LBA" as
it's the official UEFI name for the field.

Addresses: https://github.com/util-linux/util-linux/issues/1554
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/gpt.c

index 3ab0e74ff55cfc931fe21f18c5df33a92be9a874..07665a825abeee46409281c3110a14895fc333d5 100644 (file)
@@ -1299,12 +1299,12 @@ static int gpt_get_disklabel_item(struct fdisk_context *cxt, struct fdisk_labeli
                        rc = -ENOMEM;
                break;
        case GPT_LABELITEM_FIRSTLBA:
-               item->name = _("First LBA");
+               item->name = _("First usable LBA");
                item->type = 'j';
                item->data.num64 = le64_to_cpu(h->first_usable_lba);
                break;
        case GPT_LABELITEM_LASTLBA:
-               item->name = _("Last LBA");
+               item->name = _("Last usable LBA");
                item->type = 'j';
                item->data.num64 = le64_to_cpu(h->last_usable_lba);
                break;