mirror of
https://github.com/aaru-dps/010templates.git
synced 2025-12-16 19:24:28 +00:00
Update dicformat template with block addressable tape types.
This commit is contained in:
39
dicformat.bt
39
dicformat.bt
@@ -854,6 +854,39 @@ typedef struct
|
|||||||
ChecksumEntry checksums[entries];
|
ChecksumEntry checksums[entries];
|
||||||
} ChecksumHeader;
|
} ChecksumHeader;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
uint file;
|
||||||
|
char partition;
|
||||||
|
uint64 first_block;
|
||||||
|
uint64 last_block;
|
||||||
|
} TapeFileEntry;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
BlockType identifier;
|
||||||
|
uint entries;
|
||||||
|
uint64 length;
|
||||||
|
uint64 crc64;
|
||||||
|
TapeFileEntry files[entries];
|
||||||
|
} TapeFileHeader;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
byte number;
|
||||||
|
uint64 first_block;
|
||||||
|
uint64 last_block;
|
||||||
|
} TapePartitionEntry;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
BlockType identifier;
|
||||||
|
byte entries;
|
||||||
|
uint64 length;
|
||||||
|
uint64 crc64;
|
||||||
|
TapePartitionEntry partitions[entries];
|
||||||
|
} TapePartitionHeader;
|
||||||
|
|
||||||
LittleEndian();
|
LittleEndian();
|
||||||
|
|
||||||
local int i;
|
local int i;
|
||||||
@@ -953,5 +986,11 @@ for(i = 0; i < index.entries; i++)
|
|||||||
case 0x4D534B43:
|
case 0x4D534B43:
|
||||||
ChecksumHeader checksum;
|
ChecksumHeader checksum;
|
||||||
break;
|
break;
|
||||||
|
case 0x54425054:
|
||||||
|
TapePartitionHeader partitions;
|
||||||
|
break;
|
||||||
|
case 0x454C4654:
|
||||||
|
TapeFileHeader files;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user