Ticket #6301: intel-partitioning-system-unused-chs.diff
File intel-partitioning-system-unused-chs.diff, 1.6 KB (added by , 14 years ago) |
---|
-
src/add-ons/kernel/partitioning_systems/intel/PartitionMap.cpp
500 500 descriptor->size = Size() / BlockSize(); 501 501 descriptor->type = Type(); 502 502 descriptor->active = Active() ? 0x80 : 0x00; 503 descriptor->begin. Unset();504 descriptor->end. Unset();503 descriptor->begin.SetUnused(); 504 descriptor->end.SetUnused(); 505 505 } 506 506 } 507 507 … … 654 654 655 655 descriptor->size = Size() / BlockSize(); 656 656 descriptor->active = 0x00; 657 descriptor->begin. Unset();658 descriptor->end. Unset();657 descriptor->begin.SetUnused(); 658 descriptor->end.SetUnused(); 659 659 } 660 660 661 661 -
src/add-ons/kernel/partitioning_systems/intel/PartitionMap.h
52 52 void get_partition_type_string(uint8 type, char* buffer); 53 53 54 54 // chs 55 // NOTE: The CHS cannot express locations within larger disks and is therefor 55 // NOTE: The CHS cannot express locations within larger disks and is therefore 56 56 // mostly obsolete. 57 57 struct chs { 58 58 uint8 cylinder; 59 59 uint16 head_sector; // head[15:10], sector[9:0] 60 void Unset() { cylinder = 0; head_sector = 0; } 60 void SetUnused() { cylinder = 0xff; head_sector = 0xffff; } 61 void Unset() { cylinder = 0; head_sector = 0; } 61 62 } _PACKED; 62 63 63 64 // partition_descriptor