Class: XFS::Directory3DataHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/fs/xfs/directory3_data_header.rb

Constant Summary collapse

XFS_DIR3_BLOCK_MAGIC =

XDB3: single block dirs

0x58444233
XFS_DIR3_DATA_MAGIC =

XDD3: multiblock dirs

0x58444433

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDirectory3DataHeader

Returns a new instance of Directory3DataHeader.



26
27
28
29
30
31
32
# File 'lib/fs/xfs/directory3_data_header.rb', line 26

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

Instance Attribute Details

#magic_numbersObject (readonly)

Returns the value of attribute magic_numbers.



24
25
26
# File 'lib/fs/xfs/directory3_data_header.rb', line 24

def magic_numbers
  @magic_numbers
end

#padObject (readonly)

Returns the value of attribute pad.



24
25
26
# File 'lib/fs/xfs/directory3_data_header.rb', line 24

def pad
  @pad
end

#templateObject (readonly)

Returns the value of attribute template.



24
25
26
# File 'lib/fs/xfs/directory3_data_header.rb', line 24

def template
  @template
end

#version_3Object (readonly)

Returns the value of attribute version_3.



24
25
26
# File 'lib/fs/xfs/directory3_data_header.rb', line 24

def version_3
  @version_3
end