Sha256: fb95af790c8acdcc49f374bafef28b2d99d07c453cd2e50bdb56f4532b1eb4ec

Contents?: true

Size: 431 Bytes

Versions: 14

Compression:

Stored size: 431 Bytes

Contents

module ReFSProbe
  FS_SIGNATURE  = [0x00, 0x00, 0x00, 0x52, 0x65, 0x46, 0x53, 0x00] # ...ReFS.

  def self.probe(dobj)
    $log.debug "ReFSProbe >> dobj=#{dobj}"  if $log
    return false  unless dobj.kind_of?(MiqDisk)

    dobj.seek(0, IO::SEEK_SET)
    magic = dobj.read(FS_SIGNATURE.size).unpack('C*')

    # Check for ReFS signature
    raise "ReFS is Not Supported" if magic == FS_SIGNATURE

    # No ReFS
    false
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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