Ticket #7015: partition_typeid-r1.diff

File partition_typeid-r1.diff, 4.7 KB (added by kallisti5, 10 years ago)

patch hrev1

  • src/add-ons/kernel/partitioning_systems/intel/PartitionMap.cpp

     
    11/*
    2  * Copyright 2003-2009, Haiku, Inc. All Rights Reserved.
     2 * Copyright 2003-2010, Haiku, Inc. All Rights Reserved.
    33 * Distributed under the terms of the MIT License.
    44 *
    55 * Authors:
    66 *      Ingo Weinhold, bonefish@cs.tu-berlin.de
     7 *      Alexander von Gluck, kallisti5@unixzen.com
    78 */
    89
    910
     
    5051static const size_t kUnrecognizedTypeStringLength = 18;
    5152
    5253static const struct partition_type kPartitionTypes[] = {
    53     // these entries must be sorted by type (currently not)
    54 // TODO: Standardize naming.
     54    // Can be created (in display order)
    5555    { 0x00, "empty", true },
     56    { 0x0f, INTEL_EXTENDED_PARTITION_NAME, true },
     57    { 0x0c, "FAT 32-bit, LBA-mapped", true },
     58    { 0x82, "Linux swap", true },
     59    { 0x83, "Linux native", true },
     60    { 0xa5, "FreeBSD", true },
     61    { 0xa6, "OpenBSD", true },
     62    { 0xa9, "NetBSD", true },
     63    { 0xa8, "MacOS X", true },
     64    { 0xab, "MacOS X boot", true },
     65    { 0xaf, "MacOS X HFS/HFS+", true },
     66    { 0x4d, "QNX 4", true },
     67    { 0xb3, "QNX 6", true },
     68    { 0xeb, BFS_NAME, true },
     69    // Known file system types
    5670    { 0x01, "FAT 12-bit", false},
    5771    { 0x02, "Xenix root", false },
    5872    { 0x03, "Xenix user", false },
    5973    { 0x04, "FAT 16-bit (dos 3.0)", false },
    60     { 0x05, /*"Extended Partition"*/INTEL_EXTENDED_PARTITION_NAME, false },
     74    { 0x05, INTEL_EXTENDED_PARTITION_NAME, false },
    6175    { 0x06, "FAT 16-bit (dos 3.31)", false },
    62     { 0x07, "OS/2 IFS, Windows NT, Advanced Unix", true },
     76    { 0x07, "OS/2 IFS, Windows NT, Advanced Unix", false },
     77    { 0x08, "AIX", false },
     78    { 0x09, "AIX bootable", false },
     79    { 0x0a, "OS/2 Boot Manager", false },
    6380    { 0x0b, "FAT 32-bit", false },
    64     { 0x0c, "FAT 32-bit, LBA-mapped", true },
    65     { 0x0d, "FAT 16-bit, LBA-mapped", false },
    66     { 0x0f, /*"Extended Partition, LBA-mapped"*/INTEL_EXTENDED_PARTITION_NAME,
    67         true },
    68     { 0x42, "Windows 2000 marker (switches to a proprietary partition table)",
     81    { 0x0e, "FAT 16-bit, LBA-mapped", false },
     82    { 0x10, "OPUS", false },
     83    { 0x11, "Hidden FAT 12-bit", false },
     84    { 0x12, "Compaq diagnostic", false },
     85    { 0x14, "Hidden FAT 16-bit", false },
     86    { 0x16, "Hidden FAT 16-bit", false },
     87    { 0x17, "Hidden HPFS/NTFS", false },
     88    { 0x18, "AST SmartSleep", false },
     89    { 0x1b, "Hidden W95 FAT 32-bit", false },
     90    { 0x1c, "Hidden W95 FAT 32-bit", false },
     91    { 0x1e, "Hidden W95 FAT 16-bit", false },
     92    { 0x24, "NEC DOS", false },
     93    { 0x39, "Plan 9", false },
     94    { 0x3c, "PartitionMagic", false },
     95    { 0x40, "Venix 80286", false },
     96    { 0x41, "PPC PReP Boot", false },
     97    { 0x42, "Windows 2000 marker (proprietary extended)",
    6998        false },
    70     { 0x4d, "QNX 4", true },
    7199    { 0x4e, "QNX 4 2nd part", false },
    72100    { 0x4f, "QNX 4 3rd part", false },
     101    { 0x50, "OnTrack DM", false },
     102    { 0x51, "OnTrack DM6 Aux", false },
     103    { 0x52, "CP/M", false },
     104    { 0x53, "OnTrack DM6 Aux", false },
     105    { 0x54, "OnTrack DM6", false },
     106    { 0x55, "EZ-Drive", false },
     107    { 0x56, "Golden Bow", false },
     108    { 0x5c, "Priam Edisk", false },
     109    { 0x61, "SpeedStor", false },
     110    { 0x63, "GNU HURD", false },
     111    { 0x64, "Novell Netware", false },
     112    { 0x65, "Novell Netware", false },
     113    { 0x70, "DiskSecure Mult", false },
     114    { 0x75, "PC/IX", false },
    73115    { 0x78, "XOSL boot loader", false },
    74     { 0x82, "Linux swapfile", true },
    75     { 0x83, "Linux native", true },
     116    { 0x80, "Old Minix", false },
     117    { 0x81, "Minix", false },
     118    { 0x84, "OS/2 hidden", false },
    76119    { 0x85, /*"Linux extendend partition"*/INTEL_EXTENDED_PARTITION_NAME,
    77120        false },
    78     { 0xa5, "FreeBSD", true },
    79     { 0xa6, "OpenBSD", true },
     121    { 0x86, "NTFS volume set", false },
     122    { 0x87, "NTFS volume set", false },
     123    { 0x88, "Linux plaintext", false },
     124    { 0x8e, "Linux LVM", false },
     125    { 0x93, "Amoeba", false },
     126    { 0x94, "Amoeba BBT", false },
     127    { 0x9f, "BSD/OS", false },
     128    { 0xa0, "IBM Hibernation", false },
    80129    { 0xa7, "NextSTEP", false },
    81     { 0xa8, "MacOS X", true },
    82     { 0xa9, "NetBSD", true },
    83     { 0xab, "MacOS X boot", true },
    84     { 0xaf, "MacOS X HFS", true },
     130    { 0xb1, "QNX 6", false},
     131    { 0xb2, "QNX 6", false},
     132    { 0xb7, "BSDI fs", false },
     133    { 0xb8, "BSDI swap", false },
    85134    { 0xbe, "Solaris 8 boot", false },
    86135    { 0xbf, "Solaris 10", false },
    87     { 0xeb, /*"BeOS"*/ BFS_NAME, true },
     136    { 0xc1, "DR-DOS FAT", false },
     137    { 0xc4, "DR-DOS FAT", false },
     138    { 0xc6, "DR-DOS FAT", false },
     139    { 0xc7, "Syrinx", false },
     140    { 0xe4, "SpeedStor", false },
     141    { 0xee, "GPT", false },
     142    { 0xef, "EFI", false },
     143    { 0xfb, "VMware VMFS", false },
     144    { 0xfc, "VMware VMKCORE", false },
     145    { 0xfd, "Linux raid auto", false },
    88146    { 0, NULL, false }
    89147};
    90148