VirtualBox

Changeset 98322 in vbox


Ignore:
Timestamp:
Jan 26, 2023 3:59:04 PM (21 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
Files:
2 deleted
9 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/formats/tar.h

    r98321 r98322  
    6767#define RTZIPTAR_TF_GNU_VOLDHR      'V'
    6868/** @} */
     69
     70/** Maximum length of a tar filename, excluding the terminating '\0'. More
     71 * does not fit into a tar record. */
     72#define RTZIPTAR_NAME_MAX           99
    6973
    7074
  • trunk/src/VBox/Main/include/ApplianceImpl.h

    r98103 r98322  
    3939/** @todo This file needs massive cleanup. Split IAppliance in a public and
    4040 * private classes. */
    41 #include <iprt/tar.h>
    4241#include "ovfreader.h"
    4342#include <set>
  • trunk/src/VBox/Main/src-all/ExtPackUtil.cpp

    r98103 r98322  
    4242#include <iprt/string.h>
    4343#include <iprt/vfs.h>
    44 #include <iprt/tar.h>
    4544#include <iprt/zip.h>
    4645#include <iprt/cpp/xml.h>
  • 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>
  • trunk/src/VBox/Runtime/Makefile.kmk

    r98307 r98322  
    747747        common/vfs/vfsprintf.cpp \
    748748        common/zip/cpiovfs.cpp \
    749         common/zip/tar.cpp \
    750749        common/zip/tarcmd.cpp \
    751750        common/zip/tarvfs.cpp \
     
    24562455        common/vfs/vfsstdpipe.cpp \
    24572456        common/zip/gzipvfs.cpp \
    2458         common/zip/tar.cpp \
    24592457        common/zip/tarcmd.cpp \
    24602458        common/zip/tarvfs.cpp \
  • trunk/src/VBox/Runtime/common/zip/tarvfs.cpp

    r98103 r98322  
    5252#include <iprt/vfslowlevel.h>
    5353
    54 #include "tar.h"
     54#include <iprt/formats/tar.h>
    5555#include "tarvfsreader.h"
    5656
  • trunk/src/VBox/Runtime/common/zip/tarvfsreader.h

    r98103 r98322  
    4141#endif
    4242
    43 #include "tar.h"
     43#include <iprt/formats/tar.h>
    4444
    4545
  • trunk/src/VBox/Runtime/common/zip/tarvfswriter.cpp

    r98103 r98322  
    5353#include <iprt/zero.h>
    5454
    55 #include "tar.h"
     55#include <iprt/formats/tar.h>
    5656
    5757#include "tarvfsreader.h"
  • trunk/src/VBox/Runtime/include/internal/magics.h

    r98103 r98322  
    238238/** Magic value for RTTCPSERVER::u32Magic. (Harlan Ellison) */
    239239#define RTUDPSERVER_MAGIC               UINT32_C(0x19340527)
    240 /** The value of RTTAR::u32Magic. (Donald Ervin Knuth) */
    241 #define RTTAR_MAGIC                     UINT32_C(0x19380110)
    242 /** The value of RTTAR::u32Magic after RTTarClose(). */
    243 #define RTTAR_MAGIC_DEAD                ~RTTAR_MAGIC
    244 /** The value of RTTARFILE::u32Magic. (Abraham Stoker) */
    245 #define RTTARFILE_MAGIC                 UINT32_C(0x18471108)
    246 /** The value of RTTARFILE::u32Magic after RTTarFileClose(). */
    247 #define RTTARFILE_MAGIC_DEAD            UINT32_C(0x19120420)
    248240/** RTTESTINT::u32Magic value. (Daniel Kehlmann) */
    249241#define RTTESTINT_MAGIC                 UINT32_C(0x19750113)
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