Changes in / [ad4b32c:40240b1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/part/mbr_part/mbr_part.c
rad4b32c r40240b1 39 39 * 40 40 * Limitations: 41 * 41 * 42 42 * Only works with boot records using LBA. CHS-only records are not 43 * supported. 44 * 45 * Referemces: 46 * 47 * The source of MBR structures for this driver have been the following 48 * Wikipedia articles: 49 * - http://en.wikipedia.org/wiki/Master_Boot_Record 50 * - http://en.wikipedia.org/wiki/Extended_boot_record 51 * 52 * The fact that the extended partition has type 0x05 is pure observation. 53 * (TODO: can it have any other type number?) 43 * supported. Maximum number of partitions is fixed. 54 44 */ 55 45 … … 80 70 81 71 /** Boot record signature */ 82 BR_SIGNATURE = 0xAA55 72 BR_SIGNATURE = 0xAA55, 83 73 }; 84 74 85 75 enum ptype { 86 /** Unused partition entry */87 PT_UNUSED = 0x00,88 76 /** Extended partition */ 89 PT_EXTENDED = 0x05 ,77 PT_EXTENDED = 0x05 90 78 }; 91 79 … … 377 365 part->length = len; 378 366 379 part->present = (pte->ptype != PT_UNUSED) ? true : false; 380 367 part->present = (sa != 0 || len != 0) ? true : false; 381 368 part->dev = 0; 382 369 part->next = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.