Changeset 17833 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 13, 2009 3:13:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r17832 r17833 2963 2963 // we need the following for the XML 2964 2964 uint64_t cbFile = 0; // actual file size 2965 rc = pTargetDisk-> GetSize(&cbFile);2965 rc = pTargetDisk->COMGETTER(Size)(&cbFile); 2966 2966 if (FAILED(rc)) throw rc; 2967 2967 2968 2968 ULONG64 cbCapacity = 0; // size reported to guest 2969 rc = pTargetDisk-> GetLogicalSize(&cbCapacity);2969 rc = pTargetDisk->COMGETTER(LogicalSize)(&cbCapacity); 2970 2970 if (FAILED(rc)) throw rc; 2971 2971 // capacity is reported in megabytes, so... … … 2982 2982 pelmFile->setAttribute("ovf:href", strTargetFileNameOnly); 2983 2983 pelmFile->setAttribute("ovf:id", strFileRef); 2984 pelmFile->setAttribute("ovf:size", Utf8StrFmt("%RI64", cbFile).c_str()); // @todo2984 pelmFile->setAttribute("ovf:size", Utf8StrFmt("%RI64", cbFile).c_str()); 2985 2985 2986 2986 // add disk to XML Disks section 2987 2987 // <Disk ovf:capacity="8589934592" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse"/> 2988 2988 xml::ElementNode *pelmDisk = pelmDiskSection->createChild("Disk"); 2989 pelmDisk->setAttribute("ovf:capacity", Utf8StrFmt("%RI64", cbCapacity).c_str()); // @todo2989 pelmDisk->setAttribute("ovf:capacity", Utf8StrFmt("%RI64", cbCapacity).c_str()); 2990 2990 pelmDisk->setAttribute("ovf:diskId", strDiskID); 2991 2991 pelmDisk->setAttribute("ovf:fileRef", strFileRef);
Note:
See TracChangeset
for help on using the changeset viewer.