VirtualBox

Changeset 98322 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jan 26, 2023 3:59:04 PM (23 months ago)
Author:
vboxsync
Message:

Runtime,Main: Remove the now unused and deprecated RTTar* API in favor of the VFS implementation, move the header declaring the tar headers to iprt/formats so the appliance code can access some required defines

Location:
trunk/src/VBox/Main/src-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp

    r98307 r98322  
    3535#include <iprt/zip.h>
    3636
     37#include <iprt/formats/tar.h>
     38
    3739#include <VBox/version.h>
    3840
     
    416418
    417419                strTargetImageName = Utf8StrFmt("%s-disk%.3d.vmdk", strBasename.c_str(), ++pAppliance->m->cDisks);
    418                 if (strTargetImageName.length() > RTTAR_NAME_MAX)
     420                if (strTargetImageName.length() > RTZIPTAR_NAME_MAX)
    419421                    throw setError(VBOX_E_NOT_SUPPORTED,
    420422                                tr("Cannot attach disk '%s' -- file name too long"), strTargetImageName.c_str());
     
    507509
    508510                strTargetImageName = Utf8StrFmt("%s-disk%.3d.iso", strBasename.c_str(), ++pAppliance->m->cDisks);
    509                 if (strTargetImageName.length() > RTTAR_NAME_MAX)
     511                if (strTargetImageName.length() > RTZIPTAR_NAME_MAX)
    510512                    throw setError(VBOX_E_NOT_SUPPORTED,
    511513                                tr("Cannot attach image '%s' -- file name too long"), strTargetImageName.c_str());
  • trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp

    r98307 r98322  
    3434#include <iprt/sha.h>
    3535#include <iprt/manifest.h>
    36 #include <iprt/tar.h>
    3736#include <iprt/zip.h>
    3837#include <iprt/stream.h>
     
    4241#include <iprt/crypto/x509.h>
    4342#include <iprt/rand.h>
     43
     44#include <iprt/formats/tar.h>
    4445
    4546#include <VBox/vd.h>
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