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