VirtualBox

Ignore:
Timestamp:
Sep 15, 2010 6:25:32 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65918
Message:

Storage/VBoxHDD: replace custom open flags with regular IPRT file open flags, introduce user-providable filesystem access interface, eliminate dependency on PGM geometry structure, change pvBuffer/cbBuffer parameter ordering to the usual conventions, eliminate the remains of the old I/O code, make more plugin methods optional to reduce redundancy, lots of cleanups

Storage/DrvVD+testcases,Main/Medium+Frontends: adapt to VBoxHDD changes, logging fixes

Storage/VDI+VMDK+DMG+Raw+VHD+Parallels+VCI: made as similar to each other as possible, added inline VFS wrappers to improve readability, full VFS support, VDI files are now 4K aligned, eliminate the remains of the old I/O code, various more or less severe bugfixes, code sort

Storage/iSCSI: support disks bigger than 2T, streamline the code to be more similar to the file-based backends, memory leak fix, error code usage like file-based backends, code sort

log+err: added new error codes/log groups and eliminated unused old ones

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r32531 r32536  
    508508}
    509509
    510 static int handleVDMessage(void *pvUser, const char *pszFormat, ...)
     510static int handleVDMessage(void *pvUser, const char *pszFormat, va_list va)
    511511{
    512512    NOREF(pvUser);
    513     va_list args;
    514     va_start(args, pszFormat);
    515     int rc = RTPrintfV(pszFormat, args);
    516     va_end(args);
    517     return rc;
     513    return RTPrintfV(pszFormat, va);
    518514}
    519515
     
    555551    /* just try it */
    556552    char *pszFormat = NULL;
    557     int rc = VDGetFormat(NULL /* pVDIfsDisk */, argv[1], &pszFormat);
     553    int rc = VDGetFormat(NULL /* pVDIfsDisk */, NULL /* pVDIfsImage */,
     554                         argv[1], &pszFormat);
    558555    if (RT_FAILURE(rc))
    559556    {
     
    616613    /* just try it */
    617614    char *pszFormat = NULL;
    618     int rc = VDGetFormat(NULL /* pVDIfsDisk */, argv[0], &pszFormat);
     615    int rc = VDGetFormat(NULL /* pVDIfsDisk */, NULL /* pVDIfsImage */,
     616                         argv[0], &pszFormat);
    619617    if (RT_FAILURE(rc))
    620618    {
     
    14371435    Assert(RT_MIN(cbSize / 512 / 16 / 63, 16383) -
    14381436           (unsigned int)RT_MIN(cbSize / 512 / 16 / 63, 16383) == 0);
    1439     PDMMEDIAGEOMETRY PCHS, LCHS;
     1437    VDGEOMETRY PCHS, LCHS;
    14401438    PCHS.cCylinders = (unsigned int)RT_MIN(cbSize / 512 / 16 / 63, 16383);
    14411439    PCHS.cHeads = 16;
     
    16411639    {
    16421640        char *pszFormat = NULL;
    1643         vrc = VDGetFormat(NULL /* pVDIfsDisk */, src.c_str(), &pszFormat);
     1641        vrc = VDGetFormat(NULL /* pVDIfsDisk */, NULL /* pVDIfsImage */,
     1642                          src.c_str(), &pszFormat);
    16441643        if (RT_FAILURE(vrc))
    16451644        {
     
    17881787        {
    17891788            char *pszFormat = NULL;
    1790             vrc = VDGetFormat(NULL /* pVDIfsDisk */, src.c_str(), &pszFormat);
     1789            vrc = VDGetFormat(NULL /* pVDIfsDisk */, NULL /* pVDIfsImage */,
     1790                              src.c_str(), &pszFormat);
    17911791            if (RT_FAILURE(vrc))
    17921792            {
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r32531 r32536  
    890890    Assert(RT_MIN(cbFile / 512 / 16 / 63, 16383) -
    891891           (unsigned int)RT_MIN(cbFile / 512 / 16 / 63, 16383) == 0);
    892     PDMMEDIAGEOMETRY PCHS, LCHS;
     892    VDGEOMETRY PCHS, LCHS;
    893893    PCHS.cCylinders = (unsigned int)RT_MIN(cbFile / 512 / 16 / 63, 16383);
    894894    PCHS.cHeads = 16;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette