Module: Reiser4Probe
- Defined in:
- lib/fs/MiqFS/modules/Reiser4Probe.rb
Constant Summary collapse
- REISER4_MASTER_OFFSET =
65536
- REISER4_MAGIC_OFFSET =
REISER4_MASTER_OFFSET
- REISER4_MAGIC_SIZE =
10
- REISER4_MAGIC =
"ReIsEr4".freeze
Class Method Summary collapse
Class Method Details
.probe(dobj) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/fs/MiqFS/modules/Reiser4Probe.rb', line 7 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 |