Sha256: f7290d9d1cb48ed22c197fdf71ea31d3f92653447e9628058683e8feb0eb4a78

Contents?: true

Size: 477 Bytes

Versions: 52

Compression:

Stored size: 477 Bytes

Contents

module Reiser4Probe
  REISER4_MASTER_OFFSET = 65536
  REISER4_MAGIC_OFFSET  = REISER4_MASTER_OFFSET
  REISER4_MAGIC_SIZE    = 10
  REISER4_MAGIC         = "ReIsEr4".freeze

  def self.probe(dobj)
    return(false) unless dobj.kind_of?(MiqDisk)

    # Assume Reiser4 - read magic at offset.
    dobj.seek(REISER4_MAGIC_OFFSET)
    magic = dobj.read(REISER4_MAGIC_SIZE)&.strip
    raise "Reiser4 is Not Supported" if magic == REISER4_MAGIC

    # No Reiser4.
    false
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

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