Documentation ¶
Index ¶
- Constants
- func Open(name string) (*io.SectionReader, error)
- type BAT
- type FileIdentifer
- type FileParameter
- type Header
- type HeaderSection
- type MetadataTable
- type MetadataTableEntry
- type MetadataTableHeader
- type PayloadState
- type Permission
- type RegionTable
- type RegionTableEntry
- type RegionTableHeader
- type SystemMetadata
- type VHDX
- type VHDXState
- type VHDXStateInfo
Constants ¶
View Source
const ( Code = 0x1EDC6F41 SupportSectorSize = 512 BitmapAllocationGroup = "6677c22d-23f6-0042-9d64-115e9bfd4a08" MetadataRegion = "06a27c8b-9047-9a4b-b8fe-575f050f886e" FileParameters = "3767a1ca-36fa-434d-b3b6-33f0aa44e76b" VirtualDiskSize = "2442a52f-1bcd-7648-b211-5dbed83bf4b8" VirtualDiskID = "ab12cabe-e6b2-2345-93ef-c309e000c746" LogicalSectorSize = "1dbf4181-6fa9-0947-ba47-f233a8faab5f" PhysicalSectorSize = "c748a3cd-5d44-7144-9cc9-e9885251c556" ParentLocator = "2d5fd3a8-0bb3-4d45-abf7-d3d84834ab0c" PAYLOAD_BLOCK_NOT_PRESENT PayloadState = 0 PAYLOAD_BLOCK_UNDEFINED PayloadState = 1 PAYLOAD_BLOCK_ZERO PayloadState = 2 PAYLOAD_BLOCK_UNMAPPED PayloadState = 3 PAYLOAD_BLOCK_FULLY_PRESENT PayloadState = 6 PAYLOAD_BLOCK_PARTIALLY_PRESENT PayloadState = 7 VHDX_BAT_FILE_OFF_MASK = 0xFFFFFFFFFF00000 VHDX_MAX_SECTORS_PER_BLOCK = 1 << 23 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BAT ¶
type BAT struct { State PayloadState FileOffset uint64 }
type FileIdentifer ¶
type FileParameter ¶
type HeaderSection ¶
type HeaderSection struct { FileIdentifer FileIdentifer // 64KB Align Headers [2]Header // 64KB Align RegionTables [2]RegionTable // 64KB Align }
type MetadataTable ¶
type MetadataTable struct { Header MetadataTableHeader Entries []MetadataTableEntry SystemData SystemMetadata }
MetadataTable is required 64 KB
type MetadataTableEntry ¶
type MetadataTableEntry struct { ItemID uuid.UUID Offset uint32 Length uint32 Permission Permission // contains filtered or unexported fields }
type MetadataTableHeader ¶
type PayloadState ¶
type PayloadState int
type Permission ¶
type Permission uint8
func (Permission) String ¶
func (p Permission) String() string
type RegionTable ¶
type RegionTable struct { RegionTableHeader RegionTableHeader RegionTableEntries []RegionTableEntry }
type RegionTableEntry ¶
type RegionTableHeader ¶
type SystemMetadata ¶
type VHDX ¶
type VHDX struct { HeaderSection HeaderSection // 1MB Align MetadataTable MetadataTable BlockAllocationTables []BAT // contains filtered or unexported fields }
func (*VHDX) TranslateOffset ¶
func (v *VHDX) TranslateOffset(physicalOffset int64) (*VHDXStateInfo, error)
type VHDXStateInfo ¶
type VHDXStateInfo struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.