summaryrefslogtreecommitdiff
path: root/mbr.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2011-03-21 21:33:57 -0400
committersrs5694 <srs5694@users.sourceforge.net>2011-03-21 21:33:57 -0400
commit699941e25a1fcf0beec124203747c8ed20842989 (patch)
treeeb2629231de8c6a973e3ef449fab80082b87a9ae /mbr.cc
parent815fb65195106b8afe1b8dfec5dae605dbd7ccbe (diff)
downloadsgdisk-699941e25a1fcf0beec124203747c8ed20842989.tar.gz
0.7.1 release version
Diffstat (limited to 'mbr.cc')
-rw-r--r--mbr.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/mbr.cc b/mbr.cc
index 5a36fa0..372d7f0 100644
--- a/mbr.cc
+++ b/mbr.cc
@@ -66,16 +66,6 @@ void MBRData::MakeProtectiveMBR(int clearBoot) {
} // if/else
partitions[0].SetInclusion(PRIMARY);
- // Write CHS data. This maxes out the use of the disk, as much as
- // possible -- even to the point of exceeding the capacity of sub-8GB
- // disks. The EFI spec says to use 0xffffff as the ending value,
- // although normal MBR disks max out at 0xfeffff. FWIW, both GNU Parted
- // and Apple's Disk Utility use 0xfeffff, and the latter puts that
- // value in for the FIRST sector, too!
-/* LBAtoCHS(1, partitions[0].firstSector);
- if (LBAtoCHS(partitions[0].lengthLBA, partitions[0].lastSector) == 0)
- partitions[0].lastSector[0] = 0xFF; */
-
state = gpt;
} // MBRData::MakeProtectiveMBR()