@@ -52,21 +52,25 @@ class MBRBlockDevice : public BlockDevice {
52
52
*
53
53
* @param bd Block device to partition
54
54
* @param part Partition to use, 1-4
55
- * @param type 8-bit partition type to identify partition contents
55
+ * @param type 8-bit partition type or ID to identify partition contents
56
56
* @param start Start block address to map to block 0 of partition.
57
57
* Negative addresses are calculated from the end of the
58
58
* underlying block devices. Block 0 is implicitly ignored
59
59
* from the range to store the MBR.
60
60
* @return 0 on success or a negative error code on failure.
61
61
* @note This is the same as partition(bd, part, type, start, bd->size())
62
+ * @note 8-bit partition type or ID is intended to specify the filesystem partition
63
+ * contains and/or to flag special access methods used to access these partitions
64
+ * for example like CHS mapping, LBA access etc.,
65
+ * The list of Partition types or IDS refer https://en.wikipedia.org/wiki/Partition_type#List_of_partition_IDs
62
66
*/
63
67
static int partition (BlockDevice *bd, int part, uint8_t type, bd_addr_t start);
64
68
65
69
/* * Format the MBR to contain the following partition
66
70
*
67
71
* @param bd Block device to partition
68
72
* @param part Partition to use, 1-4
69
- * @param type 8-bit partition type to identify partition contents
73
+ * @param type 8-bit partition type or ID to identify partition contents
70
74
* @param start Start block address to map to block 0 of partition,
71
75
* negative addresses are calculated from the end of the
72
76
* underlying block devices. Block 0 is implicitly ignored
@@ -193,8 +197,8 @@ class MBRBlockDevice : public BlockDevice {
193
197
*/
194
198
virtual bd_addr_t get_partition_stop () const ;
195
199
196
- /* * Get 8-bit type of the partition
197
- * @return 8-bit type of partition assigned during format
200
+ /* * Get 8-bit type or ID of the partition
201
+ * @return 8-bit type or ID of partition assigned during format
198
202
*/
199
203
virtual uint8_t get_partition_type () const ;
200
204
0 commit comments