Changeset 7e266ff in mainline


Ignore:
Timestamp:
2009-09-04T19:37:38Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ad4b32c
Parents:
9aa54d4a
Message:

Detect unused PTEs by null type, not by null addresses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/part/mbr_part/mbr_part.c

    r9aa54d4a r7e266ff  
    8484
    8585enum ptype {
     86        /** Unused partition entry */
     87        PT_UNUSED       = 0x00,
    8688        /** Extended partition */
    87         PT_EXTENDED     = 0x05
     89        PT_EXTENDED     = 0x05,
    8890};
    8991
     
    375377        part->length     = len;
    376378
    377         part->present = (sa != 0 || len != 0) ? true : false;
     379        part->present = (pte->ptype != PT_UNUSED) ? true : false;
    378380
    379381        part->dev = 0;
Note: See TracChangeset for help on using the changeset viewer.