GNOME Bugzilla – Bug 576431
better warning
Last modified: 2009-03-31 21:06:27 UTC
I was trying to delete a partition that was inside an extended partition. The partitions I have are part1 part2 part3 [extended] part4 part5 part6 I was going to delete part6. I got a warning dialog that was talking about deleting "partition 7 on the media". This had me slightly confused, because my naming choice didn't make it obvious that part6 is the seventh. I think it would be better to mention the label in the warning dialog, if there is a label.
Similarly, when deleting an extended partition, the warning should make it very clear that all the partitions contained in the extended partition will be deleted too.
Created attachment 131503 [details] [review] a patch
Committed with the following fixes + char *type; + type = gdu_device_partition_get_type (device); This causes a compiler warning. + if (strcmp (type, "0x05") == 0) { Extended partitions can have type 0x05, 0x0f and 0x85. Ideally DeviceKit-disks would have a partition-is-msdos-extended but that is not how it works right now. http://git.gnome.org/cgit/gnome-disk-utility/commit/?id=1c2c67959f76ac5f0262d7d4dd198540a4055e26