VirtualBox

Changeset 2675 in vbox


Ignore:
Timestamp:
May 16, 2007 4:59:38 PM (18 years ago)
Author:
vboxsync
Message:

Raw disk VMDK image creation stuff.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk

    • Property svn:keywords changed from Id to Author Date Id Revision
    r2478 r2675  
    3030        VBoxManage.cpp \
    3131        VBoxInternalManage.cpp
     32ifndef VBOX_OSE
     33VBoxManage_SOURCES   += \
     34        VBoxInternalManageVmdk.cpp
     35endif
    3236ifdef VBOX_WITH_VRDP
    3337 VBoxManage_DEFS     += VBOX_VRDP
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r1475 r2675  
    4747#include "VBoxManage.h"
    4848
     49#ifndef VBOX_OSE
     50HRESULT CmdListPartitions(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession);
     51HRESULT CmdCreateRawVMDK(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession);
     52#endif /* !VBOX_OSE */
     53
    4954using namespace com;
    5055
     
    6166             "Commands:\n"
    6267             "\n"
    63              "%s%s%s"
     68             "%s%s%s%s%s"
    6469             "WARNING: This is a development tool and shall only be used to analyse\n"
    6570             "         problems. It is completely unsupported and will change in\n"
     
    8186                "       Assigns a new UUID to the given VDI file. This way, multiple copies\n"
    8287                "       of VDI containers can be registered.\n"
     88                "\n"
     89                : "",
     90            (u64Cmd & USAGE_LISTPARTITIONS) ?
     91                "  listpartitions -rawdisk <diskname>\n"
     92                "       Lists all partitions on <diskname>.\n"
     93                "\n"
     94                : "",
     95            (u64Cmd & USAGE_CREATERAWVMDK) ?
     96                "  createrawvmdk -filename <filename> -rawdisk <diskname>\n"
     97                "                [-partitions <list of partition numbers>]\n"
     98                "                [-register]\n"
     99                "       Creates a new VMDK image which gives access to an entite host disk or\n"
     100                "       some partitions of a host disk. The diskname is on Linux e.g. /dev/sda,\n"
     101                "       and on Windows e.g. \\\\.\\PhysicalDisk0).\n"
     102                "       Optionally the created image can be immediately registered.\n"
     103                "       The necessary partition numbers can be queried with\n"
     104                "         VBoxManage internalcommands listpartitions\n"
    83105                "\n"
    84106                : ""
     
    392414    if (!strcmp(pszCmd, "setvdiuuid"))
    393415        return handleSetVDIUUID(argc - 1, &argv[1], aVirtualBox, aSession);
     416#ifndef VBOX_OSE
     417    if (!strcmp(pszCmd, "listpartitions"))
     418        return CmdListPartitions(argc - 1, &argv[1], aVirtualBox, aSession);
     419    if (!strcmp(pszCmd, "createrawvmdk"))
     420        return CmdCreateRawVMDK(argc - 1, &argv[1], aVirtualBox, aSession);
     421#endif /* !VBOX_OSE */
    394422
    395423    /* default: */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r1489 r2675  
    6060#define USAGE_SETVDIUUID            BIT64(31)
    6161#define USAGE_CONVERTDD             BIT64(32)
     62#ifdef VBOX_OSE
     63#define USAGE_LISTPARTITIONS        (0)
     64#define USAGE_CREATERAWVMDK         (0)
     65#else /* !VBOX_OSE */
     66#define USAGE_LISTPARTITIONS        BIT64(34)
     67#define USAGE_CREATERAWVMDK         BIT64(34)
     68#endif /* !VBOX_OSE */
    6269#define USAGE_ALL                   (~(uint64_t)0)
    6370
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