VirtualBox

Changeset 35284 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 21, 2010 8:49:53 PM (14 years ago)
Author:
vboxsync
Message:

introduced VBOX_WITH_S3

Location:
trunk/src/VBox/Main
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r33698 r35284  
    932932                taskrc = pAppliance->readFS(task.get());
    933933            else if (task->locInfo.storageType == VFSType_S3)
     934#ifdef VBOX_WITH_S3
    934935                taskrc = pAppliance->readS3(task.get());
     936#else
     937                taskrc = VERR_NOT_IMPLEMENTED;
     938#endif
    935939        break;
    936940
     
    939943                taskrc = pAppliance->importFS(task.get());
    940944            else if (task->locInfo.storageType == VFSType_S3)
     945#ifdef VBOX_WITH_S3
    941946                taskrc = pAppliance->importS3(task.get());
     947#else
     948                taskrc = VERR_NOT_IMPLEMENTED;
     949#endif
    942950        break;
    943951
     
    946954                taskrc = pAppliance->writeFS(task.get());
    947955            else if (task->locInfo.storageType == VFSType_S3)
     956#ifdef VBOX_WITH_S3
    948957                taskrc = pAppliance->writeS3(task.get());
     958#else
     959                taskrc = VERR_NOT_IMPLEMENTED;
     960#endif
    949961        break;
    950962    }
  • trunk/src/VBox/Main/ApplianceImplExport.cpp

    r35164 r35284  
    19061906}
    19071907
     1908#ifdef VBOX_WITH_S3
    19081909/**
    19091910 * Worker code for writing out OVF to the cloud. This is called from Appliance::taskThreadWriteOVF()
     
    20762077    return rc;
    20772078}
    2078 
     2079#endif /* VBOX_WITH_S3 */
  • trunk/src/VBox/Main/ApplianceImplImport.cpp

    r34501 r35284  
    952952}
    953953
     954#ifdef VBOX_WITH_S3
    954955/**
    955956 * Worker code for reading OVF from the cloud. This is called from Appliance::taskThreadImportOrExport()
     
    10781079    return rc;
    10791080}
     1081#endif /* VBOX_WITH_S3 */
    10801082
    10811083/*******************************************************************************
     
    13851387}
    13861388
     1389#ifdef VBOX_WITH_S3
    13871390/**
    13881391 * Worker code for importing OVF from the cloud. This is called from Appliance::taskThreadImportOrExport()
     
    15751578    return rc;
    15761579}
     1580#endif /* VBOX_WITH_S3 */
    15771581
    15781582HRESULT Appliance::readManifestFile(const Utf8Str &strFile, void **ppvBuf, size_t *pcbSize, PVDINTERFACEIO pCallbacks, PSHA1STORAGE pStorage)
  • trunk/src/VBox/Main/Makefile.kmk

    r35170 r35284  
    228228        $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,) \
    229229        $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK,) \
    230         $(if $(VBOX_WITH_VUSB),VBOX_WITH_VUSB,)
     230        $(if $(VBOX_WITH_VUSB),VBOX_WITH_VUSB,) \
     231        $(if $(VBOX_WITH_S3),VBOX_WITH_S3,)
    231232ifdef VBOX_WITH_USB
    232233 VBoxSVC_DEFS += \
  • trunk/src/VBox/Main/VFSExplorerImpl.cpp

    r33797 r35284  
    226226                rc = pVFSExplorer->updateFS(task.get());
    227227            else if (pVFSExplorer->m->storageType == VFSType_S3)
     228#ifdef VBOX_WITH_S3
    228229                rc = pVFSExplorer->updateS3(task.get());
     230#else
     231                rc = VERR_NOT_IMPLEMENTED;
     232#endif
    229233            break;
    230234        }
     
    234238                rc = pVFSExplorer->deleteFS(task.get());
    235239            else if (pVFSExplorer->m->storageType == VFSType_S3)
     240#ifdef VBOX_WITH_S3
    236241                rc = pVFSExplorer->deleteS3(task.get());
     242#else
     243                rc = VERR_NOT_IMPLEMENTED;
     244#endif
    237245            break;
    238246        }
     
    402410}
    403411
     412#ifdef VBOX_WITH_S3
    404413HRESULT VFSExplorer::updateS3(TaskVFSExplorer *aTask)
    405414{
     
    532541    return VINF_SUCCESS;
    533542}
     543#endif /* VBOX_WITH_S3 */
    534544
    535545STDMETHODIMP VFSExplorer::Update(IProgress **aProgress)
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