Bug 1777261

Summary: Partition types to be available as plain texts
Product: [Fedora] Fedora Reporter: ricky.tigg
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: jonathan, kzak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-04 11:46:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Mention of partitiom type as plain text in gnome-disk-utility v.3.34.0 none

Description ricky.tigg 2019-11-27 10:06:48 UTC
Created attachment 1640052 [details]
Mention of partitiom type as plain text in gnome-disk-utility v.3.34.0

Enhancement request: Partition types to be available as plain texts.

Version-Release number of component: util-linux.x86_64 2.34-3.fc31 @updates-testing

How reproducible:

$ lsblk -bo size,path,uuid,parttype,fstype,[fsver]
     SIZE PATH       UUID                                  PARTTYPE   FSTYPE
[...]                                    
129511936 /dev/sdb1  e5a3c3ea-4178-4e3b-83d4-917e0a55b122  0x83       crypto

Actual results: column PARTTYPE covers partition types as codes alone; e.g "0x83" for "Linux".

Expected results: Partition types to be also available as plain texts –"Empty", "W95 FAT32", "Linux", ...–, here then "Linux", as they are in gnome-disk-utility 3.34.0 – UDisks 2.8.4 (built against 2.8.4); see gnome-disk-utility_v.3.34.0_Partition_type.png.

Comment 1 Ben Cotton 2019-11-27 14:19:33 UTC
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 2 Ben Cotton 2019-11-27 15:34:04 UTC
This bug was accidentally closed due to a query error. Reopening.

Comment 3 Karel Zak 2019-12-04 11:46:02 UTC
Implemented in the upstream tree, the new column name is PARTTYPENAME. It will be available in Fedora after upgrade to util-linux v2.35.

For example GPT and MBR disks:

$ lsblk -o+PARTTYPE,PARTTYPENAME /dev/sdc /dev/sda
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT PARTTYPE                             PARTTYPENAME
sda      8:0    0 223.6G  0 disk                                                 
├─sda1   8:1    0   200M  0 part /boot/efi  c12a7328-f81f-11d2-ba4b-00a0c93ec93b EFI System
├─sda2   8:2    0   200M  0 part /boot      0fc63daf-8483-4772-8e79-3d69d8477de4 Linux filesystem
├─sda3   8:3    0 130.3G  0 part            0fc63daf-8483-4772-8e79-3d69d8477de4 Linux filesystem
├─sda4   8:4    0    50G  0 part /          0fc63daf-8483-4772-8e79-3d69d8477de4 Linux filesystem
└─sda5   8:5    0  42.9G  0 part            0fc63daf-8483-4772-8e79-3d69d8477de4 Linux filesystem
sdc      8:32   0   100M  0 disk                                                 
└─sdc1   8:33   0    99M  0 part /mnt/test  0x83                                 Linux

Comment 4 ricky.tigg 2019-12-04 12:11:17 UTC
Good job! In output from 'lsblk -O', it would be advantageous to have that column to come listed in the order displayed, "PARTTYPE, PARTTYPENAME".

Comment 5 Karel Zak 2019-12-04 13:37:15 UTC
It's internally defined behind PARTTYPE, so the -O output will be "PARTTYPE, PARTTYPENAME", etc.