udftools

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Variables
defaults.c File Reference
`#include "config.h"`
`#include "mkudffs.h"`
Include dependency graph for defaults.c:

Go to the source code of this file.

## Variables
struct udf_sizing | default_sizing [][UDF_ALLOC_TYPE_SIZE]
struct primaryVolDesc | default_pvd
struct logicalVolDesc | default_lvd
struct volDescPtr | default_vdp
struct impUseVolDescImpUse | default_iuvdiu
struct impUseVolDesc | default_iuvd
struct partitionDesc | default_pd
struct unallocSpaceDesc | default_usd
struct terminatingDesc | default_td
struct logicalVolIntegrityDesc | default_lvid
struct logicalVolIntegrityDescImpUse | default_lvidiu
struct sparingTable | default_stable
struct sparablePartitionMap | default_sparmap
struct virtualAllocationTable15 | default_vat15
struct virtualAllocationTable20 | default_vat20
struct virtualPartitionMap | default_virtmap
struct fileSetDesc | default_fsd
struct fileEntry | default_fe
struct extendedFileEntry | default_efe

## Detailed Description

mkudffs default structure initializers

Definition in file defaults.c.

## Variable Documentation

struct extendedFileEntry default_efe

Definition at line 462 of file defaults.c.

struct fileEntry default_fe

Definition at line 429 of file defaults.c.

struct fileSetDesc default_fsd

Definition at line 390 of file defaults.c.

struct impUseVolDesc default_iuvd

Initial value:
=
{
.descTag =
{
.tagIdent = constant_cpu_to_le16(TAG_IDENT_IUVD),
.descVersion = constant_cpu_to_le16(3),
.tagSerialNum = constant_cpu_to_le16(1),
.descCRC = constant_cpu_to_le16(sizeof(struct impUseVolDesc) - sizeof(tag)),
},
.volDescSeqNum = constant_cpu_to_le32(4),
.impIdent =
{
.ident = UDF_ID_LV_INFO,
.identSuffix =
{
0x01,
0x02,
UDF_OS_CLASS_UNIX,
UDF_OS_ID_LINUX,
},
},
}
UDF_OS_ID_LINUX
#define UDF_OS_ID_LINUX
Definition: osta_udf.h:267
constant_cpu_to_le32
#define constant_cpu_to_le32(x)
Definition: bswap.h:251
TAG_IDENT_IUVD
#define TAG_IDENT_IUVD
Definition: ecma_167.h:185
UDF_OS_CLASS_UNIX
#define UDF_OS_CLASS_UNIX
Definition: osta_udf.h:251
UDF_ID_LV_INFO
#define UDF_ID_LV_INFO
Definition: osta_udf.h:53
constant_cpu_to_le16
#define constant_cpu_to_le16(x)
Definition: bswap.h:250
impUseVolDesc
Definition: ecma_167.h:251

Definition at line 195 of file defaults.c.

struct impUseVolDescImpUse default_iuvdiu

Initial value:
=
{
.LVICharset =
{
.charSetType = UDF_CHAR_SET_TYPE,
.charSetInfo = UDF_CHAR_SET_INFO
},
.logicalVolIdent = "\x08" "LinuxUDF",
.LVInfo1 = "\x08" "Linux mkudffs " PACKAGE_VERSION,
.LVInfo2 = "\x08" "Linux udftools " PACKAGE_VERSION,
.LVInfo3 = "\x08" PACKAGE_URL,
.impIdent =
{
.ident = UDF_ID_DEVELOPER,
.identSuffix =
{
UDF_OS_CLASS_UNIX,
UDF_OS_ID_LINUX,
},
},
}
UDF_ID_DEVELOPER
#define UDF_ID_DEVELOPER
Definition: osta_udf.h:51
UDF_OS_ID_LINUX
#define UDF_OS_ID_LINUX
Definition: osta_udf.h:267
UDF_OS_CLASS_UNIX
#define UDF_OS_CLASS_UNIX
Definition: osta_udf.h:251
UDF_CHAR_SET_INFO
#define UDF_CHAR_SET_INFO
Definition: osta_udf.h:47
UDF_CHAR_SET_TYPE
#define UDF_CHAR_SET_TYPE
Definition: osta_udf.h:46

Definition at line 172 of file defaults.c.

struct logicalVolDesc default_lvd

Definition at line 122 of file defaults.c.

struct logicalVolIntegrityDesc default_lvid

Initial value:
=
{
.descTag =
{
.tagIdent = constant_cpu_to_le16(TAG_IDENT_LVID),
.descVersion = constant_cpu_to_le16(3),
.tagSerialNum = constant_cpu_to_le16(1),
.descCRC = constant_cpu_to_le16(sizeof(struct logicalVolIntegrityDesc) - sizeof(tag)),
},
.integrityType = constant_cpu_to_le32(LVID_INTEGRITY_TYPE_CLOSE),
.lengthOfImpUse = constant_cpu_to_le32(sizeof(struct logicalVolIntegrityDescImpUse)),
}
constant_cpu_to_le32
#define constant_cpu_to_le32(x)
Definition: bswap.h:251
TAG_IDENT_LVID
#define TAG_IDENT_LVID
Definition: ecma_167.h:190
logicalVolIntegrityDesc
Definition: ecma_167.h:360
logicalVolIntegrityDescImpUse
Definition: osta_udf.h:94
constant_cpu_to_le16
#define constant_cpu_to_le16(x)
Definition: bswap.h:250
LVID_INTEGRITY_TYPE_CLOSE
#define LVID_INTEGRITY_TYPE_CLOSE
Definition: ecma_167.h:376

Definition at line 268 of file defaults.c.

struct logicalVolIntegrityDescImpUse default_lvidiu

Initial value:
=
{
.impIdent =
{
.ident = UDF_ID_DEVELOPER,
.identSuffix =
{
UDF_OS_CLASS_UNIX,
UDF_OS_ID_LINUX
},
},
.minUDFReadRev = constant_cpu_to_le16(0x0201),
.minUDFWriteRev = constant_cpu_to_le16(0x0201),
.maxUDFWriteRev = constant_cpu_to_le16(0x0201),
}
UDF_ID_DEVELOPER
#define UDF_ID_DEVELOPER
Definition: osta_udf.h:51
UDF_OS_ID_LINUX
#define UDF_OS_ID_LINUX
Definition: osta_udf.h:267
UDF_OS_CLASS_UNIX
#define UDF_OS_CLASS_UNIX
Definition: osta_udf.h:251
constant_cpu_to_le16
#define constant_cpu_to_le16(x)
Definition: bswap.h:250

Definition at line 282 of file defaults.c.

struct partitionDesc default_pd

Initial value:
=
{
.descTag =
{
.tagIdent = constant_cpu_to_le16(TAG_IDENT_PD),
.descVersion = constant_cpu_to_le16(3),
.tagSerialNum = constant_cpu_to_le16(1),
.descCRC = constant_cpu_to_le16(sizeof(struct partitionDesc) - sizeof(tag)),
},
.volDescSeqNum = constant_cpu_to_le32(5),
.partitionFlags = constant_cpu_to_le16(0x0001),
.partitionContents =
{
.ident = PD_PARTITION_CONTENTS_NSR03,
},
.accessType = constant_cpu_to_le32(PD_ACCESS_TYPE_OVERWRITABLE),
.impIdent =
{
.ident = UDF_ID_DEVELOPER,
.identSuffix =
{
UDF_OS_CLASS_UNIX,
UDF_OS_ID_LINUX,
},
},
}
PD_PARTITION_CONTENTS_NSR03
#define PD_PARTITION_CONTENTS_NSR03
Definition: ecma_167.h:286
UDF_ID_DEVELOPER
#define UDF_ID_DEVELOPER
Definition: osta_udf.h:51
UDF_OS_ID_LINUX
#define UDF_OS_ID_LINUX
Definition: osta_udf.h:267
constant_cpu_to_le32
#define constant_cpu_to_le32(x)
Definition: bswap.h:251
TAG_IDENT_PD
#define TAG_IDENT_PD
Definition: ecma_167.h:186
UDF_OS_CLASS_UNIX
#define UDF_OS_CLASS_UNIX
Definition: osta_udf.h:251
PD_ACCESS_TYPE_OVERWRITABLE
#define PD_ACCESS_TYPE_OVERWRITABLE
Definition: ecma_167.h:293
constant_cpu_to_le16
#define constant_cpu_to_le16(x)
Definition: bswap.h:250
partitionDesc
Definition: ecma_167.h:260

Definition at line 218 of file defaults.c.

struct primaryVolDesc default_pvd

Definition at line 72 of file defaults.c.

struct udf_sizing default_sizing[][UDF_ALLOC_TYPE_SIZE]

Definition at line 32 of file defaults.c.

struct sparablePartitionMap default_sparmap

Initial value:
=
{
.partitionMapType = 2,
.partitionMapLength = sizeof(struct sparablePartitionMap),
.partIdent =
{
.flags = 0,
.ident = UDF_ID_SPARABLE,
.identSuffix =
{
0x01,
0x02,
UDF_OS_CLASS_UNIX,
UDF_OS_ID_LINUX
},
},
.volSeqNum = constant_cpu_to_le16(1),
.packetLength = constant_cpu_to_le16(32)
}
partIdent
regid partIdent
Definition: osta_udf.h:164
sparablePartitionMap
Definition: osta_udf.h:141
UDF_OS_ID_LINUX
#define UDF_OS_ID_LINUX
Definition: osta_udf.h:267
UDF_OS_CLASS_UNIX
#define UDF_OS_CLASS_UNIX
Definition: osta_udf.h:251
UDF_ID_SPARABLE
#define UDF_ID_SPARABLE
Definition: osta_udf.h:64
constant_cpu_to_le16
#define constant_cpu_to_le16(x)
Definition: bswap.h:250

Definition at line 323 of file defaults.c.

struct sparingTable default_stable

Initial value:
=
{
.descTag =
{
.tagIdent = constant_cpu_to_le16(0),
.descVersion = constant_cpu_to_le16(3),
.tagSerialNum = constant_cpu_to_le16(1),
.descCRC = constant_cpu_to_le16(sizeof(struct sparingTable) - sizeof(tag)),
},
.sparingIdent =
{
.flags = 0,
.ident = UDF_ID_SPARING,
.identSuffix =
{
0x01,
0x02,
UDF_OS_CLASS_UNIX,
UDF_OS_ID_LINUX
},
},
.reallocationTableLen = constant_cpu_to_le16(0),
.sequenceNum = constant_cpu_to_le32(0)
}
sparingTable
Definition: osta_udf.h:192
UDF_ID_SPARING
#define UDF_ID_SPARING
Definition: osta_udf.h:66
UDF_OS_ID_LINUX
#define UDF_OS_ID_LINUX
Definition: osta_udf.h:267
constant_cpu_to_le32
#define constant_cpu_to_le32(x)
Definition: bswap.h:251
UDF_OS_CLASS_UNIX
#define UDF_OS_CLASS_UNIX
Definition: osta_udf.h:251
constant_cpu_to_le16
#define constant_cpu_to_le16(x)
Definition: bswap.h:250

Definition at line 298 of file defaults.c.

struct terminatingDesc default_td

Initial value:
=
{
.descTag =
{
.tagIdent = constant_cpu_to_le16(TAG_IDENT_TD),
.descVersion = constant_cpu_to_le16(3),
.tagSerialNum = constant_cpu_to_le16(1),
.descCRC = constant_cpu_to_le16(sizeof(struct terminatingDesc) - sizeof(tag)),
},
}
TAG_IDENT_TD
#define TAG_IDENT_TD
Definition: ecma_167.h:189
terminatingDesc
Definition: ecma_167.h:353
constant_cpu_to_le16
#define constant_cpu_to_le16(x)
Definition: bswap.h:250

Definition at line 257 of file defaults.c.

struct unallocSpaceDesc default_usd

Initial value:
=
{
.descTag =
{
.tagIdent = constant_cpu_to_le16(TAG_IDENT_USD),
.descVersion = constant_cpu_to_le16(3),
.tagSerialNum = constant_cpu_to_le16(1),
.descCRC = constant_cpu_to_le16(sizeof(struct unallocSpaceDesc) - sizeof(tag)),
},
.volDescSeqNum = constant_cpu_to_le32(6),
}
constant_cpu_to_le32
#define constant_cpu_to_le32(x)
Definition: bswap.h:251
unallocSpaceDesc
Definition: ecma_167.h:344
constant_cpu_to_le16
#define constant_cpu_to_le16(x)
Definition: bswap.h:250
TAG_IDENT_USD
#define TAG_IDENT_USD
Definition: ecma_167.h:188

Definition at line 245 of file defaults.c.

struct virtualAllocationTable15 default_vat15

Initial value:
=
{
.vatIdent =
{
.flags = 0,
.ident = UDF_ID_ALLOC,
.identSuffix =
{
0x01,
0x02,
UDF_OS_CLASS_UNIX,
UDF_OS_ID_LINUX
},
},
.previousVATICBLoc = constant_cpu_to_le32(0xFFFFFFFF)
}
UDF_ID_ALLOC
#define UDF_ID_ALLOC
Definition: osta_udf.h:65
UDF_OS_ID_LINUX
#define UDF_OS_ID_LINUX
Definition: osta_udf.h:267
constant_cpu_to_le32
#define constant_cpu_to_le32(x)
Definition: bswap.h:251
UDF_OS_CLASS_UNIX
#define UDF_OS_CLASS_UNIX
Definition: osta_udf.h:251

Definition at line 343 of file defaults.c.

struct virtualAllocationTable20 default_vat20

Initial value:
=
{
.lengthHeader = constant_cpu_to_le16(152),
.lengthImpUse = constant_cpu_to_le16(0),
.logicalVolIdent = "\x08" "LinuxUDF",
.previousVATICBLoc = constant_cpu_to_le32(0xFFFFFFFF),
.minUDFReadRev = constant_cpu_to_le16(0x0201),
.minUDFWriteRev = constant_cpu_to_le16(0x0201),
.maxUDFWriteRev = constant_cpu_to_le16(0x0201)
}
constant_cpu_to_le32
#define constant_cpu_to_le32(x)
Definition: bswap.h:251
constant_cpu_to_le16
#define constant_cpu_to_le16(x)
Definition: bswap.h:250

Definition at line 360 of file defaults.c.

struct volDescPtr default_vdp

Initial value:
=
{
.descTag =
{
.tagIdent = constant_cpu_to_le16(TAG_IDENT_VDP),
.descVersion = constant_cpu_to_le16(3),
.tagSerialNum = constant_cpu_to_le16(1),
.descCRC = constant_cpu_to_le16(sizeof(struct volDescPtr) - sizeof(tag)),
},
.volDescSeqNum = constant_cpu_to_le32(3),
}
constant_cpu_to_le32
#define constant_cpu_to_le32(x)
Definition: bswap.h:251
TAG_IDENT_VDP
#define TAG_IDENT_VDP
Definition: ecma_167.h:184
volDescPtr
Definition: ecma_167.h:242
constant_cpu_to_le16
#define constant_cpu_to_le16(x)
Definition: bswap.h:250

Definition at line 160 of file defaults.c.

struct virtualPartitionMap default_virtmap

Initial value:
=
{
.partitionMapType = 2,
.partitionMapLength = sizeof(struct virtualPartitionMap),
.partIdent =
{
.flags = 0,
.ident = UDF_ID_VIRTUAL,
.identSuffix =
{
0x01,
0x02,
UDF_OS_CLASS_UNIX,
UDF_OS_ID_LINUX
},
},
.volSeqNum = constant_cpu_to_le16(1)
}
partIdent
regid partIdent
Definition: osta_udf.h:164
UDF_OS_ID_LINUX
#define UDF_OS_ID_LINUX
Definition: osta_udf.h:267
UDF_OS_CLASS_UNIX
#define UDF_OS_CLASS_UNIX
Definition: osta_udf.h:251
UDF_ID_VIRTUAL
#define UDF_ID_VIRTUAL
Definition: osta_udf.h:63
constant_cpu_to_le16
#define constant_cpu_to_le16(x)
Definition: bswap.h:250
virtualPartitionMap
Definition: osta_udf.h:129

Definition at line 371 of file defaults.c.