Decode and list EAs in FAT12 and FAT16.

This commit is contained in:
2019-04-27 20:19:18 +01:00
parent 3d8f0f2380
commit 27d1f83d61
5 changed files with 124 additions and 7 deletions

View File

@@ -882,5 +882,17 @@ namespace DiscImageChef.Filesystems.FAT
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
public readonly byte[] name3;
}
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct EaHeader
{
public readonly ushort magic;
public readonly ushort cluster;
public readonly EaFlags flags;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)]
public readonly byte[] filename;
public readonly uint unknown;
public readonly ushort zero;
}
}
}