Changeset 43207 in vbox for trunk/src/VBox
- Timestamp:
- Sep 5, 2012 3:32:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r42860 r43207 9 9 10 10 /* 11 * Copyright (C) 2006-201 0Oracle Corporation11 * Copyright (C) 2006-2012 Oracle Corporation 12 12 * 13 13 * This file is part of VirtualBox Open Source Edition (OSE), as … … 92 92 typedef struct HOSTPARTITION 93 93 { 94 94 /** partition number */ 95 95 unsigned uIndex; 96 96 /** partition type */ … … 752 752 uint8_t partitionTableHeader[512]; 753 753 uint32_t sector_size = 512; 754 uint64_t lastUsableLBA = 0;754 uint64_t lastUsableLBA = 0; 755 755 int rc; 756 756 … … 778 778 const char* l_ppth = (char*)partitionTableHeader; 779 779 rc = strncmp(l_ppth, "EFI PART", 8); 780 if (RT_FAILURE(rc))780 if (RT_FAILURE(rc)) 781 781 return VERR_INVALID_PARAMETER; 782 782 … … 850 850 pCP->uPartDataStart = 0; /* will be filled out later properly. */ 851 851 pCP->cPartDataSectors = 0; 852 if (start==0 || end==0)852 if (start==0 || end==0) 853 853 { 854 854 pCP->uIndex = 0; … … 856 856 break; 857 857 } 858 else{ 858 else 859 { 859 860 pCP->uStart = start; 860 861 pCP->uSize = (end +1) - start;/*+1 LBA because the last address is included*/ 861 }862 } 862 863 863 864 ++currentEntry; … … 1015 1016 1016 1017 /* Fill out partitioning location info for backup GPT. */ 1017 if (partitioningType == GPT)1018 if (partitioningType == GPT) 1018 1019 { 1019 1020 pPart->aPartitions[pPart->cPartitions-1].uPartDataStart = lastUsableLBA+1;
Note:
See TracChangeset
for help on using the changeset viewer.