github.com/Microsoft/azure-vhd-utils@v0.0.0-20230613175315-7c30a3748a1b/vhdcore/constants.go (about) 1 package vhdcore 2 3 // VhdDefaultBlockSize is the default block size of the VHD. 4 // 5 const VhdDefaultBlockSize int64 = 512 * 1024 6 7 // VhdNoDataLong is the value in the BAT indicating a block is empty. 8 // 9 const VhdNoDataLong int64 = ^int64(0) 10 11 // VhdNoDataInt is the value in the BAT indicating a block is empty. 12 // 13 const VhdNoDataInt uint32 = 0xFFFFFFFF 14 15 // VhdPageSize is the size of the VHD page size. 16 // 17 const VhdPageSize int64 = 512 18 19 // VhdFooterSize is the size of the VHD footer in bytes. 20 // 21 const VhdFooterSize int64 = 512 22 23 // VhdSectorLength is the sector length which is always 512 bytes, as per VHD specification. 24 // 25 const VhdSectorLength int64 = 512 26 27 // VhdFooterChecksumOffset is the bye offset of checksum field in the VHD footer. 28 // 29 const VhdFooterChecksumOffset int = 64