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