VirtualBox

Changeset 35238 in vbox


Ignore:
Timestamp:
Dec 20, 2010 11:18:40 AM (14 years ago)
Author:
vboxsync
Message:

Frontends/VBoxManage: makes no sense to register a raw disk/partition VMDK immediately with the new registry logic

File:
1 edited

Legend:

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

    r33595 r35238  
    178178        ? "  createrawvmdk -filename <filename> -rawdisk <diskname>\n"
    179179          "                [-partitions <list of partition numbers> [-mbr <filename>] ]\n"
    180           "                [-register] [-relative]\n"
     180          "                [-relative]\n"
    181181          "       Creates a new VMDK image which gives access to an entite host disk (if\n"
    182182          "       the parameter -partitions is not specified) or some partitions of a\n"
     
    188188          "       On Linux host the parameter -relative causes a VMDK file to be created\n"
    189189          "       which refers to individual partitions instead to the entire disk.\n"
    190           "       Optionally the created image can be immediately registered.\n"
    191190          "       The necessary partition numbers can be queried with\n"
    192191          "         VBoxManage internalcommands listpartitions\n"
     
    918917    Utf8Str rawdisk;
    919918    const char *pszPartitions = NULL;
    920     bool fRegister = false;
    921919    bool fRelative = false;
    922920
     
    964962            i++;
    965963            pszPartitions = argv[i];
    966         }
    967         else if (strcmp(argv[i], "-register") == 0)
    968         {
    969             fRegister = true;
    970964        }
    971965#ifdef RT_OS_LINUX
     
    14791473    }
    14801474
    1481     if (fRegister)
    1482     {
    1483         ComPtr<IMedium> hardDisk;
    1484         CHECK_ERROR(aVirtualBox, OpenMedium(Bstr(filename).raw(),
    1485                                             DeviceType_HardDisk,
    1486                                             AccessMode_ReadWrite,
    1487                                             hardDisk.asOutParam()));
    1488     }
    1489 
    14901475    return SUCCEEDED(rc) ? 0 : 1;
    14911476
Note: See TracChangeset for help on using the changeset viewer.

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