Bug 860149

Summary: Changing partition type with gdisk does not change partition name
Product: [Fedora] Fedora Reporter: Bruce Jerrick <bmj001>
Component: gdiskAssignee: Terje Røsten <terje.rosten>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 17CC: terje.rosten
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-24 12:49:13 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:

Description Bruce Jerrick 2012-09-25 06:18:39 UTC
Description of problem:
When a partition type is changed with gdisk ('t' command), it does
not update the partition name (at offset 56 in the partition entry).

Version-Release number of selected component:
gdisk-0.8.4-1.fc17

How reproducible:
100%

Steps to Reproduce:
1. gdisk /dev/sda
2. Print the partition table ('p')
3. Change partition type ('t')
4. Print the partition table ('p')
5. Quit (without writing) ('q')

Actual results:
The partition name does not change.

Expected results:
The partition name should change to that of the new partition type.

Additional info:
A 'c' command exists to change the partition name, but it should
  be updated automatically when the partition type is changed.
The partition name is correct if the partition is deleted then
  recreated.

Comment 1 Terje Røsten 2012-10-08 13:14:45 UTC
Thanks for your report.

You have to write (w) to make the change happen? 

Or is it some something else you mean?

Can you cut and paste a session and post here?

Comment 2 Terje Røsten 2012-12-18 19:00:40 UTC
Hi again!

Any comments?

Comment 3 Terje Røsten 2013-02-24 12:49:13 UTC
I would not consider this a bug, name is not necessarily  connected to type.

I don't agree with "it should be updated automatically when the partition type is changed."

If they follow all the time there is no need for both type and name?