sfdisk: make unhiding as complete as possible

It is unlikely anyone will ever need this, but I like idea commands being
complete.  The partition id's that can be unhide after this change are;

Hidden HPFS/NTFS
Hidden W95 FAT32
Hidden W95 FAT32 (LBA)
Hidden W95 FAT16 (LBA)

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2013-07-07 20:54:16 +01:00 committed by Karel Zak
parent 84948ff939
commit cdd834c37d
1 changed files with 2 additions and 1 deletions

View File

@ -2992,7 +2992,8 @@ set_unhidden(struct disk_desc *z, char *pnam) {
pno = asc_to_index(pnam, z);
id = z->partitions[pno].p.sys_type;
if (id == 0x11 || id == 0x14 || id == 0x16 || id == 0x17)
if (id == 0x11 || id == 0x14 || id == 0x16 || id == 0x17 ||
id == 0x17 || id == 0x1b || id == 0x1c || id == 0x1e)
id -= 0x10;
else
errx(EXIT_FAILURE, _("partition %s has id %x and is not hidden"), pnam, id);