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.2.18 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.17 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.16 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.15 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.14 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.13 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.12 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.11 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.10 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.9 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.8 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.7 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.6 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.5 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.4 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.3 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.2 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.1 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.2.0 lib/fs/xfs/directory3_data_header.rb
manageiq-smartstate-0.1.6 lib/fs/xfs/directory3_data_header.rb