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.5.4 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.3.5 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.5.3 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.5.2 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.5.1 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.5.0 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.3.4 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.4.0 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.2.18.2 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.3.3 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.3.2 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.3.1 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.3.0 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.2.24 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.2.18.1 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.2.23 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.2.22 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.2.21 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.2.20 lib/fs/xfs/directory_block_tail.rb
manageiq-smartstate-0.2.19 lib/fs/xfs/directory_block_tail.rb