Sha256: 41de153ac8568db08141ade7926e9b6a06b643355dc1a4c1a89fd85c0dd6ed7e

Contents?: true

Size: 1.17 KB

Versions: 66

Compression:

Stored size: 1.17 KB

Contents

require 'fs/xfs/directory'
require 'fs/xfs/superblock'

module XFS
  DIRECTORY3_DATA_HEADER = BinaryStruct.new([
    'I>',  'magic',               # magic number
    'I>',  'crc',                 # CRC of block
    'Q>',  'block_number',        # first block of the buffer
    'Q>',  'last_write_sequence', # sequence number of last write
    'a16', 'uuid',                # filesystem we belong to
    'Q>',  'owner',               # inode that owns the block
  ])
  SIZEOF_DIRECTORY3_DATA_HEADER = DIRECTORY3_DATA_HEADER.size

  DIRECTORY3_DATA_PAD = BinaryStruct.new([
    'I>',  'padding',             # padding
  ])
  SIZEOF_DIRECTORY3_DATA_PAD = DIRECTORY3_DATA_PAD.size

  class Directory3DataHeader
    XFS_DIR3_BLOCK_MAGIC        = 0x58444233 # XDB3: single block dirs
    XFS_DIR3_DATA_MAGIC         = 0x58444433 # XDD3: multiblock dirs

    attr_reader :template, :magic_numbers, :pad, :version_3

    def initialize
      @template      = DIRECTORY3_DATA_HEADER
      @magic_numbers = [XFS_DIR3_BLOCK_MAGIC, XFS_DIR3_DATA_MAGIC]
      @pad           = SIZEOF_DIRECTORY3_DATA_PAD
      @version_3     = true
      super
    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/directory3_data_header.rb
manageiq-smartstate-0.10.0 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.9.0 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.8.1 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.8.0 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.7.0 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.6.2 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.5.10 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.3.10 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.6.1 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.3.9 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.6.0 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.5.9 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.5.8 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.3.8 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.5.7 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.3.7 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.5.6 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.3.6 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.5.5 lib/fs/xfs/directory3_data_header.rb