mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Decode "PX" system area.
This commit is contained in:
@@ -36,99 +36,117 @@ namespace DiscImageChef.Filesystems.ISO9660
|
||||
{
|
||||
public partial class ISO9660
|
||||
{
|
||||
// RRIP 1.10
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct PosixAttributesOld
|
||||
{
|
||||
public readonly ushort signature;
|
||||
public readonly byte length;
|
||||
public readonly byte version;
|
||||
public readonly PosixMode st_mode;
|
||||
public readonly PosixMode st_mode_be;
|
||||
public readonly uint st_nlink;
|
||||
public readonly uint st_nlink_be;
|
||||
public readonly uint st_uid;
|
||||
public readonly uint st_uid_be;
|
||||
public readonly uint st_gid;
|
||||
public readonly uint st_gid_be;
|
||||
}
|
||||
|
||||
// RRIP 1.12
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct PosixAttributes
|
||||
{
|
||||
public ushort signature;
|
||||
public byte length;
|
||||
public byte version;
|
||||
public PosixMode st_mode;
|
||||
public PosixMode st_mode_be;
|
||||
public uint st_nlink;
|
||||
public uint st_nlink_be;
|
||||
public uint st_uid;
|
||||
public uint st_uid_be;
|
||||
public uint st_gid;
|
||||
public uint st_gid_be;
|
||||
public uint st_ino;
|
||||
public uint st_ino_be;
|
||||
public readonly ushort signature;
|
||||
public readonly byte length;
|
||||
public readonly byte version;
|
||||
public readonly PosixMode st_mode;
|
||||
public readonly PosixMode st_mode_be;
|
||||
public readonly uint st_nlink;
|
||||
public readonly uint st_nlink_be;
|
||||
public readonly uint st_uid;
|
||||
public readonly uint st_uid_be;
|
||||
public readonly uint st_gid;
|
||||
public readonly uint st_gid_be;
|
||||
public readonly uint st_ino;
|
||||
public readonly uint st_ino_be;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct PosixDeviceNumber
|
||||
{
|
||||
public ushort signature;
|
||||
public byte length;
|
||||
public byte version;
|
||||
public uint dev_t_high;
|
||||
public uint dev_t_high_be;
|
||||
public uint dev_t_low;
|
||||
public uint dev_t_low_be;
|
||||
public readonly ushort signature;
|
||||
public readonly byte length;
|
||||
public readonly byte version;
|
||||
public readonly uint dev_t_high;
|
||||
public readonly uint dev_t_high_be;
|
||||
public readonly uint dev_t_low;
|
||||
public readonly uint dev_t_low_be;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct SymbolicLink
|
||||
{
|
||||
public ushort signature;
|
||||
public byte length;
|
||||
public byte version;
|
||||
public SymlinkFlags flags;
|
||||
public readonly ushort signature;
|
||||
public readonly byte length;
|
||||
public readonly byte version;
|
||||
public readonly SymlinkFlags flags;
|
||||
// Followed by SymbolicLinkComponent (link to /bar/foo uses at least two of these structs)
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct SymbolicLinkComponent
|
||||
{
|
||||
public SymlinkComponentFlags flags;
|
||||
public byte length;
|
||||
public readonly SymlinkComponentFlags flags;
|
||||
public readonly byte length;
|
||||
// Followed by component content
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct AlternateName
|
||||
{
|
||||
public ushort signature;
|
||||
public byte length;
|
||||
public byte version;
|
||||
public AlternateNameFlags flags;
|
||||
public readonly ushort signature;
|
||||
public readonly byte length;
|
||||
public readonly byte version;
|
||||
public readonly AlternateNameFlags flags;
|
||||
// Folowed by name, can be divided in pieces
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct ChildLink
|
||||
{
|
||||
public ushort signature;
|
||||
public byte length;
|
||||
public byte version;
|
||||
public uint child_dir_lba;
|
||||
public uint child_dir_lba_be;
|
||||
public readonly ushort signature;
|
||||
public readonly byte length;
|
||||
public readonly byte version;
|
||||
public readonly uint child_dir_lba;
|
||||
public readonly uint child_dir_lba_be;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct ParentLink
|
||||
{
|
||||
public ushort signature;
|
||||
public byte length;
|
||||
public byte version;
|
||||
public uint parent_dir_lba;
|
||||
public uint parent_dir_lba_be;
|
||||
public readonly ushort signature;
|
||||
public readonly byte length;
|
||||
public readonly byte version;
|
||||
public readonly uint parent_dir_lba;
|
||||
public readonly uint parent_dir_lba_be;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct RelocatedDirectory
|
||||
{
|
||||
public ushort signature;
|
||||
public byte length;
|
||||
public byte version;
|
||||
public readonly ushort signature;
|
||||
public readonly byte length;
|
||||
public readonly byte version;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct Timestamps
|
||||
{
|
||||
public ushort signature;
|
||||
public byte length;
|
||||
public byte version;
|
||||
public TimestampFlags flags;
|
||||
public readonly ushort signature;
|
||||
public readonly byte length;
|
||||
public readonly byte version;
|
||||
public readonly TimestampFlags flags;
|
||||
// If flags indicate long format, timestamps are 17 bytes, if not, 7 bytes
|
||||
// Followed by creation time if present
|
||||
// Followed by modification time if present
|
||||
@@ -142,14 +160,14 @@ namespace DiscImageChef.Filesystems.ISO9660
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct SparseFile
|
||||
{
|
||||
public ushort signature;
|
||||
public byte length;
|
||||
public byte version;
|
||||
public uint virtual_size_high;
|
||||
public uint virtual_size_high_be;
|
||||
public uint virtual_size_low;
|
||||
public uint virtual_size_low_be;
|
||||
public byte table_depth;
|
||||
public readonly ushort signature;
|
||||
public readonly byte length;
|
||||
public readonly byte version;
|
||||
public readonly uint virtual_size_high;
|
||||
public readonly uint virtual_size_high_be;
|
||||
public readonly uint virtual_size_low;
|
||||
public readonly uint virtual_size_low_be;
|
||||
public readonly byte table_depth;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user