Sha256: c8e9090c9d27531b0892579e6e565c34543f9dd3b9f92cc82beb15c729549d7b
Contents?: true
Size: 434 Bytes
Versions: 14
Compression:
Stored size: 434 Bytes
Contents
module HFSProbe HFS_SUPER_OFFSET = 0 HFS_MAGIC_OFFSET = 0 HFS_MAGIC_SIZE = 2 HFS_SUPER_MAGIC = 0x4c4b def self.probe(dobj) return(false) unless dobj.kind_of?(MiqDisk) # Check for HFS signature in first int. dobj.seek(HFS_SUPER_OFFSET + HFS_MAGIC_OFFSET) magic = dobj.read(HFS_MAGIC_SIZE).unpack('S')[0] raise "HFS is Not Supported" if magic == HFS_SUPER_MAGIC # No HFS. false end end
Version data entries
14 entries across 14 versions & 1 rubygems