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

Version Path
manageiq-smartstate-0.10.1 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.10.0 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.9.0 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.8.1 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.8.0 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.7.0 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.6.2 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.5.10 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.3.10 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.6.1 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.3.9 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.6.0 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.5.9 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.5.8 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.3.8 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.5.7 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.3.7 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.5.6 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.3.6 lib/fs/xfs/directory2_data_header.rb
manageiq-smartstate-0.5.5 lib/fs/xfs/directory2_data_header.rb