- Timestamp:
- Mar 13, 2009 2:47:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r17829 r17830 2964 2964 } 2965 2965 2966 // we need the following for the XML 2967 uint64_t cbFile = 0; // actual file size 2968 rc = pTargetDisk->GetSize(&cbFile); 2969 if (FAILED(rc)) throw rc; 2970 2971 ULONG64 cbCapacity = 0; // size reported to guest 2972 rc = pTargetDisk->GetLogicalSize(&cbCapacity); 2973 if (FAILED(rc)) throw rc; 2974 // capacity is reported in megabytes, so... 2975 cbCapacity *= _1M; 2976 2966 2977 // upon success, close the disk as well 2967 2978 rc = pTargetDisk->Close(); 2968 2979 if (FAILED(rc)) throw rc; 2969 2970 // we need the capacity and actual file size for the XML2971 uint64_t cbFile = 12345678; // @todo2972 uint64_t cbCapacity = 2345678; // @todo2973 2980 2974 2981 // now handle the XML for the disk:
Note:
See TracChangeset
for help on using the changeset viewer.