Sha256: 0051709a9dc2d55b1519aaa235e86b3b648c5a1dc66fa338da73bbc278a0ea18

Contents?: true

Size: 477 Bytes

Versions: 14

Compression:

Stored size: 477 Bytes

Contents

module UnionFSProbe
  UNIONFS_SUPER_OFFSET  = 1024
  UNIONFS_MAGIC_OFFSET  = 52
  UNIONFS_MAGIC_SIZE    = 4
  UNIONFS_MAGIC         = 0xf15f083d

  def self.probe(dobj)
    return false unless dobj.kind_of?(MiqDisk)

    # Assume UnionFS - read magic at offset.
    dobj.seek(UNIONFS_SUPER_OFFSET + UNIONFS_MAGIC_OFFSET)
    magic = dobj.read(UNIONFS_MAGIC_SIZE).unpack('L')
    raise "UnionFS is Not Supported" if magic == UNIONFS_MAGIC

    # No UnionFS.
    false
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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