Sha256: f911712ac18d4f689984dddea98e8ca857407db75f4f5f216b636ea55e0c6738
Contents?: true
Size: 828 Bytes
Versions: 66
Compression:
Stored size: 828 Bytes
Contents
require 'fs/xfs/directory' require 'fs/xfs/superblock' module XFS # # xfs_dir2_data_hdr consists of the magic number # followed by 3 copies of the xfs_dir2_data_free structure # DIRECTORY2_DATA_HEADER = BinaryStruct.new([ 'I>', 'magic', # magic number ]) SIZEOF_DIRECTORY2_DATA_HEADER = DIRECTORY2_DATA_HEADER.size class Directory2DataHeader XFS_DIR2_BLOCK_MAGIC = 0x58443242 # XD2B: single block dirs XFS_DIR2_DATA_MAGIC = 0x58443244 # XD2D: multiblock dirs attr_reader :template, :magic_numbers, :pad, :version_3 def initialize @template = DIRECTORY2_DATA_HEADER @magic_numbers = [XFS_DIR2_BLOCK_MAGIC, XFS_DIR2_DATA_MAGIC] @pad = 0 @version_3 = false end end # class Directory3DataHeader end # module XFS
Version data entries
66 entries across 66 versions & 1 rubygems