Sha256: 7746aa8eecdbbce8fcdad2f89330a39e8bcc8041677b1f81bad5a7a16a46514b

Contents?: true

Size: 666 Bytes

Versions: 66

Compression:

Stored size: 666 Bytes

Contents

module XFS
  #
  # xfs_dir2_data_hdr consists of the magic number
  # followed by 3 copies of the xfs_dir2_data_free structure
  #
  DIRECTORY_BLOCK_TAIL = BinaryStruct.new([
    'I>', 'count',               # total number of leaf entries
    'I>', 'stale',               # total number of free entries
  ])
  SIZEOF_DIRECTORY_BLOCK_TAIL = DIRECTORY_BLOCK_TAIL.size

  class DirectoryBlockTail
    attr_reader :count, :stale, :size

    def initialize(data)
      tail = DIRECTORY_BLOCK_TAIL.decode(data)
      @count = tail['count']
      @stale = tail['stale']
      @size  = SIZEOF_DIRECTORY_BLOCK_TAIL
    end
  end # class DirectoryBlockTail
end   # module XFS

Version data entries

66 entries across 66 versions & 1 rubygems

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