Sha256: 0d80b0e00f3e7ea98d7d8a540c4eb93763ba97edba1bf0c81118d671407953a6

Contents?: true

Size: 469 Bytes

Versions: 14

Compression:

Stored size: 469 Bytes

Contents

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

  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

14 entries across 14 versions & 1 rubygems

Version Path
manageiq-smartstate-0.2.6 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.2.5 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.2.4 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.2.3 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.2.2 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.2.1 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.2.0 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.1.6 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.1.5 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.1.4 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.1.3 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.1.2 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.1.1 lib/fs/MiqFS/modules/Reiser4Probe.rb
manageiq-smartstate-0.1.0 lib/fs/MiqFS/modules/Reiser4Probe.rb