Sha256: 2776f761069e3c16da3287a5aafeafb392d93fda004bdae5e37d159f6eb93f68

Contents?: true

Size: 385 Bytes

Versions: 52

Compression:

Stored size: 385 Bytes

Contents

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

  def self.probe(dobj)
    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

52 entries across 52 versions & 1 rubygems

Version Path
manageiq-smartstate-0.10.1 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.10.0 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.9.0 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.8.1 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.8.0 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.7.0 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.6.2 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.5.10 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.3.10 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.6.1 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.3.9 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.6.0 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.5.9 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.5.8 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.3.8 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.5.7 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.3.7 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.5.6 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.3.6 lib/fs/MiqFS/modules/ReFSProbe.rb
manageiq-smartstate-0.5.5 lib/fs/MiqFS/modules/ReFSProbe.rb