Class: XFS::Directory3DataHeader
- Inherits:
-
Object
- Object
- XFS::Directory3DataHeader
- 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
-
#magic_numbers ⇒ Object
readonly
Returns the value of attribute magic_numbers.
-
#pad ⇒ Object
readonly
Returns the value of attribute pad.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
-
#version_3 ⇒ Object
readonly
Returns the value of attribute version_3.
Instance Method Summary collapse
-
#initialize ⇒ Directory3DataHeader
constructor
A new instance of Directory3DataHeader.
Constructor Details
#initialize ⇒ Directory3DataHeader
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_numbers ⇒ Object (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 |
#pad ⇒ Object (readonly)
Returns the value of attribute pad.
24 25 26 |
# File 'lib/fs/xfs/directory3_data_header.rb', line 24 def pad @pad end |
#template ⇒ Object (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_3 ⇒ Object (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 |