Class: RawDisk

Inherits:
FileSystem show all
Defined in:
lib/file_systems/RawDisk.rb

Class Method Summary collapse

Methods inherited from FileSystem

all_file_systems, code_for_tests, files, is_valid_file_system_if, matching_score, non_matching_score

Methods included from SubclassTracking

extended

Class Method Details

.compatability_score(file_system_image) ⇒ Object

this should be the file system of last resort



16
17
18
19
20
21
22
23
# File 'lib/file_systems/RawDisk.rb', line 16

def self.compatability_score(file_system_image)
  #if the filesystem on a DSK is RAW, don't worry about sector interleaves
  if file_system_image.image_format.instance_of?(A2Dsk)
    return 0
  else
    return 0.1
  end
end

.host_systemObject



11
12
13
# File 'lib/file_systems/RawDisk.rb', line 11

def self.host_system
  HostSystem
end