VirtualBox

Ignore:
Timestamp:
Oct 20, 2022 11:02:43 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154246
Message:

Frontends/VBoxManage+Storage/VMDK+doc/manual: 'VBoxManage createmedium
disk --Variant Rawdisk ...' neglects to use the calculated raw disk size
but instead uses the passed in value which is zero (unless --size or
--sizebyte has been specified) when creating the VMDK image and also
forgets to update the physical disk geometry (PCHS) for the VMDK image.
bugref:9224 ticketref:21125

File:
1 edited

Legend:

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

    r96407 r97260  
    486486            }
    487487        }
     488        if ((enmMediumVariant & MediumVariant_VmdkRawDisk) && strcmp(format, "VMDK"))
     489            return errorSyntax(Disk::tr("Variant 'Rawdisk' requires '--format=VMDK'"));
    488490    }
    489491    else
     
    491493        if (   !filename
    492494            || !*filename)
    493             return errorSyntax(Disk::tr("Parameters --filename is required"));
     495            return errorSyntax(Disk::tr("Parameter --filename is required"));
    494496        size = 0;
    495497        if (cmd != CMD_DISK)
     
    596598                if (!fPropertyFound)
    597599                    return RTMsgErrorExit(RTEXITCODE_FAILURE,
    598                                           Disk::tr("The %s is not found in the property list of the requested medium format."),
    599                                           pszKey);
     600                                          Disk::tr("Property '%s' was not found in the list of medium properties for the requested medium format (%s)."),
     601                                          pszKey, format);
    600602                if (!fBinary)
    601603                    CHECK_ERROR2I_RET(pMedium, SetProperty(Bstr(pszKey).raw(), Bstr(it->m_pszValue).raw()),
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