VirtualBox

Changeset 69013 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Oct 9, 2017 12:08:12 PM (7 years ago)
Author:
vboxsync
Message:

IPRT: UDF updates

Location:
trunk/include/iprt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/err.h

    r69011 r69013  
    29972997/** Unexpected/unknown/bad descriptor in volume descriptor sequence. */
    29982998#define VERR_ISOFS_UNEXPECTED_VDS_DESC                  (-25306)
     2999/** Too many primary volume descriptors. */
     3000#define VERR_ISOFS_TOO_MANY_PVDS                        (-25307)
     3001/** Too many logical volume descriptors. */
     3002#define VERR_ISOFS_TOO_MANY_LVDS                        (-25308)
     3003/** Too many partition descriptors. */
     3004#define VERR_ISOFS_TOO_MANY_PDS                         (-25309)
     3005/** The logical volume descriptor has a too big partition map. */
     3006#define VERR_ISOFS_TOO_BIT_PARTMAP_IN_LVD               (-25310)
     3007/** No primary volume descriptors found. */
     3008#define VERR_ISOFS_NO_PVD                               (-25311)
     3009/** No logical volume descriptors found. */
     3010#define VERR_ISOFS_NO_LVD                               (-25312)
     3011/** No partition descriptors found. */
     3012#define VERR_ISOFS_NO_PD                                (-25313)
     3013/** Multiple primary volume descriptors found, we can only deal with one. */
     3014#define VERR_ISOFS_MULTIPLE_PVDS                        (-25314)
     3015/** Multiple logical volume descriptors found, we can only deal with one. */
     3016#define VERR_ISOFS_MULTIPLE_LVDS                        (-25315)
     3017/** Too many partition maps in the logical volume descriptor. */
     3018#define VERR_ISOFS_TOO_MANY_PART_MAPS                   (-25316)
     3019/** Malformed partition map table in the logical volume descriptor. */
     3020#define VERR_ISOFS_MALFORMED_PART_MAP_TABLE             (-25317)
     3021/** Unable to find partition descriptor for a partition map table entry. */
     3022#define VERR_ISOFS_PARTITION_NOT_FOUND                  (-25318)
     3023/** Partition mapping table is shorted than described. */
     3024#define VERR_ISOFS_INCOMPLETE_PART_MAP_TABLE            (-25319)
     3025/** Unknown partition map entry type. */
     3026#define VERR_ISOFS_UNKNOWN_PART_MAP_ENTRY_TYPE          (-25320)
     3027/** Unkonwn paritition ID found in the partition map table. */
     3028#define VERR_ISOFS_UNKNOWN_PART_MAP_TYPE_ID             (-25321)
     3029/** Support for virtual partitions as not yet been implemented. */
     3030#define VERR_ISOFS_VPM_NOT_SUPPORTED                    (-25322)
     3031/** Support for sparable partitions as not yet been implemented. */
     3032#define VERR_ISOFS_SPM_NOT_SUPPORTED                    (-25323)
     3033/** Support for metadata partitions as not yet been implemented. */
     3034#define VERR_ISOFS_MPM_NOT_SUPPORTED                    (-25324)
     3035/** Invalid or unsupported logical block size. */
     3036#define VERR_ISOFS_UNSUPPORTED_LOGICAL_BLOCK_SIZE       (-25325)
     3037/** Unsupported domain ID in logical volume descriptor. */
     3038#define VERR_ISOFS_BAD_LVD_DOMAIN_ID                    (-25326)
     3039/** Malformed or invalid file set descriptor location. */
     3040#define VERR_ISOFS_BAD_LVD_FILE_SET_DESC_LOCATION       (-25327)
     3041/** Non-standard descriptor character set in the logical volume descriptor. */
     3042#define VERR_ISOFS_BAD_LVD_DESC_CHAR_SET                (-25329)
     3043/** Invalid partition index in a location. */
     3044#define VERR_ISOFS_INVALID_PARTITION_INDEX              (-25329)
     3045/** Unsupported file system charset. */
     3046#define VERR_ISOFS_FSD_UNSUPPORTED_CHAR_SET             (-25330)
     3047/** File set descriptor has an zero length or invalid root dir extent. */
     3048#define VERR_ISOFS_FSD_ZERO_ROOT_DIR                    (-25331)
     3049/** File set descriptor has a next extent member. */
     3050#define VERR_ISOFS_FSD_NEXT_EXTENT                      (-25332)
     3051
     3052/** Internal processing error \#1.  */
     3053#define VERR_ISOFS_IPE_1                                (-25391)
     3054/** Internal processing error \#2.  */
     3055#define VERR_ISOFS_IPE_2                                (-25392)
     3056/** Internal processing error \#3.  */
     3057#define VERR_ISOFS_IPE_3                                (-25393)
     3058/** Internal processing error \#4.  */
     3059#define VERR_ISOFS_IPE_4                                (-25394)
     3060/** Internal processing error \#5.  */
     3061#define VERR_ISOFS_IPE_5                                (-25395)
    29993062
    30003063/** @} */
  • trunk/include/iprt/formats/udf.h

    r68991 r69013  
    402402#define UDF_ENTITY_ID_SPM_PARTITION_TYPE        "*UDF Sparable Partition"
    403403
     404/** Metadata partition map, partition type field.
     405 * UDF ID suffix. */
     406#define UDF_ENTITY_ID_MPM_PARTITION_TYPE        "*UDF Metadata Partition"
     407
    404408/** Sparing table, sparing identifier field.
    405409 * UDF ID suffix. */
    406410#define UDF_ENTITY_ID_ST_SPARING                "*UDF Sparting Table"
    407 
    408 /** Metadata partition map, partition type field.
    409  * UDF ID suffix. */
    410 #define UDF_ENTITY_ID_MPM_PARTITION_TYPE        "*UDF Metadata Partition"
    411411
    412412/** @} */
     
    444444/** @name UDF_TAG_ID_XXX - UDF descriptor tag IDs.
    445445 * @{ */
    446 #define UDF_TAG_ID_PRIMARY_VOL_DESC                 UINT16_C(0x0001) /**< UDFPRIMARYVOLUMEDESC */
    447 #define UDF_TAG_ID_ANCHOR_VOLUME_DESC_PTR           UINT16_C(0x0002) /**< UDFANCHORVOLUMEDESCPTR */
    448 #define UDF_TAG_ID_VOLUME_DESC_PTR                  UINT16_C(0x0003) /**< UDFVOLUMEDESCPTR */
    449 #define UDF_TAG_ID_IMPLEMENTATION_USE_VOLUME_DESC   UINT16_C(0x0004) /**< UDFIMPLEMENTATIONUSEVOLUMEDESC */
    450 #define UDF_TAG_ID_PARTITION_DESC                   UINT16_C(0x0005) /**< UDFPARTITIONDESC */
    451 #define UDF_TAG_ID_LOGICAL_VOLUME_DESC              UINT16_C(0x0006) /**< UDFLOGICALVOLUMEDESC */
    452 #define UDF_TAG_ID_UNALLOCATED_SPACE_DESC           UINT16_C(0x0007) /**< UDFUNALLOCATEDSPACEDESC */
    453 #define UDF_TAG_ID_TERMINATING_DESC                 UINT16_C(0x0008) /**< UDFTERMINATINGDESC */
    454 #define UDF_TAG_ID_LOGICAL_VOLUME_INTEGRITY_DESC    UINT16_C(0x0009) /**< UDFLOGICALVOLINTEGRITYDESC */
    455 #define UDF_TAG_ID_FILE_SET_DESC                    UINT16_C(0x0100)
    456 #define UDF_TAG_ID_FILE_ID_DESC                     UINT16_C(0x0101)
    457 #define UDF_TAG_ID_ALLOCATION_EXTENT_DESC           UINT16_C(0x0102)
    458 #define UDF_TAG_ID_INDIRECT_ENTRY                   UINT16_C(0x0103)
    459 #define UDF_TAG_ID_TERMINAL_ENTRY                   UINT16_C(0x0104)
    460 #define UDF_TAG_ID_FILE_ENTRY                       UINT16_C(0x0105)
    461 #define UDF_TAG_ID_EXTENDED_ATTRIB_HDR_DESC         UINT16_C(0x0106)
    462 #define UDF_TAG_ID_UNALLOCATED_SPACE_ENTRY          UINT16_C(0x0107)
    463 #define UDF_TAG_ID_SPACE_BITMAP_DESC                UINT16_C(0x0108)
    464 #define UDF_TAG_ID_PARTITION_INTEGERITY_DESC        UINT16_C(0x0109)
    465 #define UDF_TAG_ID_EXTENDED_FILE_ENTRY              UINT16_C(0x010a)
     446#define UDF_TAG_ID_PRIMARY_VOL_DESC                 UINT16_C(0x0001) /**< See UDFPRIMARYVOLUMEDESC */
     447#define UDF_TAG_ID_ANCHOR_VOLUME_DESC_PTR           UINT16_C(0x0002) /**< See UDFANCHORVOLUMEDESCPTR */
     448#define UDF_TAG_ID_VOLUME_DESC_PTR                  UINT16_C(0x0003) /**< See UDFVOLUMEDESCPTR */
     449#define UDF_TAG_ID_IMPLEMENTATION_USE_VOLUME_DESC   UINT16_C(0x0004) /**< See UDFIMPLEMENTATIONUSEVOLUMEDESC */
     450#define UDF_TAG_ID_PARTITION_DESC                   UINT16_C(0x0005) /**< See UDFPARTITIONDESC */
     451#define UDF_TAG_ID_LOGICAL_VOLUME_DESC              UINT16_C(0x0006) /**< See UDFLOGICALVOLUMEDESC */
     452#define UDF_TAG_ID_UNALLOCATED_SPACE_DESC           UINT16_C(0x0007) /**< See UDFUNALLOCATEDSPACEDESC */
     453#define UDF_TAG_ID_TERMINATING_DESC                 UINT16_C(0x0008) /**< See UDFTERMINATINGDESC */
     454#define UDF_TAG_ID_LOGICAL_VOLUME_INTEGRITY_DESC    UINT16_C(0x0009) /**< See UDFLOGICALVOLINTEGRITYDESC */
     455#define UDF_TAG_ID_FILE_SET_DESC                    UINT16_C(0x0100) /**< See UDFFILESETDESC */
     456#define UDF_TAG_ID_FILE_ID_DESC                     UINT16_C(0x0101) /**< See UDFFILEIDDESC */
     457#define UDF_TAG_ID_ALLOCATION_EXTENT_DESC           UINT16_C(0x0102) /**< See UDFALLOCATIONEXTENTDESC */
     458#define UDF_TAG_ID_INDIRECT_ENTRY                   UINT16_C(0x0103) /**< See UDFINDIRECTENTRY */
     459#define UDF_TAG_ID_TERMINAL_ENTRY                   UINT16_C(0x0104) /**< See UDFTERMINALENTRY */
     460#define UDF_TAG_ID_FILE_ENTRY                       UINT16_C(0x0105) /**< See UDFFILEENTRY */
     461#define UDF_TAG_ID_EXTENDED_ATTRIB_HDR_DESC         UINT16_C(0x0106) /**< See UDFEXTATTRIBHDRDESC */
     462#define UDF_TAG_ID_UNALLOCATED_SPACE_ENTRY          UINT16_C(0x0107) /**< See UDFUNALLOCATEDSPACEENTRY */
     463#define UDF_TAG_ID_SPACE_BITMAP_DESC                UINT16_C(0x0108) /**< See UDFSPACEBITMAPDESC */
     464#define UDF_TAG_ID_PARTITION_INTEGERITY_DESC        UINT16_C(0x0109) /**< See UDFPARTITIONINTEGRITYDESC */
     465#define UDF_TAG_ID_EXTENDED_FILE_ENTRY              UINT16_C(0x010a) /**< See UDFEXFILEENTRY */
    466466/** @} */
    467467
     
    738738    uint32_t        uVolumeDescSeqNo;
    739739    /** 0x014: Character set used in the achLogicalVolumeID field.   */
    740     UDFCHARSPEC     DescriptorCharSet;
     740    UDFCHARSPEC     DescCharSet;
    741741    /** 0x054: The logical volume ID (label). */
    742742    UDFDSTRING      achLogicalVolumeID[128];
     
    820820    /** 0x02: Reserved \#1. */
    821821    uint16_t        uReserved1;
    822     /** 0x04: Partition number (UDF_ENTITY_ID_VPM_PARTITION_TYPE). */
     822    /** 0x04: Partition number (UDF_ENTITY_ID_VPM_PARTITION_TYPE,
     823     *  UDF_ENTITY_ID_SPM_PARTITION_TYPE, or UDF_ENTITY_ID_MPM_PARTITION_TYPE). */
    823824    UDFENTITYID     idPartitionType;
    824825    /** 0x24: Volume sequence number. */
  • trunk/include/iprt/fsvfs.h

    r68509 r69013  
    129129/** Valid ISO 9660 mount option mask.   */
    130130#define RTFSISO9660_F_VALID_MASK    UINT32_C(0x00000007)
     131/** Checks if @a a_fNoType is the only acceptable volume type. */
     132#define RTFSISO9660_F_IS_ONLY_TYPE(a_fFlags, a_fNoType) \
     133    (   ((a_fFlags)   & (RTFSISO9660_F_NO_UDF | RTFSISO9660_F_NO_JOLIET | RTFSISO9660_F_NO_ROCK)) \
     134     == (~(a_fNoType) & (RTFSISO9660_F_NO_UDF | RTFSISO9660_F_NO_JOLIET | RTFSISO9660_F_NO_ROCK)) )
    131135/** @}  */
    132136
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