Class: SMPTool::VirtualVolume::Utils::ConverterToVolumeIO
- Inherits:
-
Object
- Object
- SMPTool::VirtualVolume::Utils::ConverterToVolumeIO
- Defined in:
- lib/smp_tool/virtual_volume/utils/converter_to_volume_io.rb
Overview
Converts virtual volume to the volume IO.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(volume) ⇒ ConverterToVolumeIO
constructor
A new instance of ConverterToVolumeIO.
Constructor Details
#initialize(volume) ⇒ ConverterToVolumeIO
Returns a new instance of ConverterToVolumeIO.
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/smp_tool/virtual_volume/utils/converter_to_volume_io.rb', line 10 def initialize(volume) @bootloader = volume.bootloader @home_block = volume.home_block @n_clusters_allocated = volume.n_clusters_allocated @n_extra_bytes_per_entry = volume.n_extra_bytes_per_entry @n_clusters_per_dir_seg = volume.n_clusters_per_dir_seg @n_max_entries_per_dir_seg = volume.n_max_entries_per_dir_seg @n_dir_segs = volume.n_dir_segs @data = _group_entries(volume.data) @data_offset = N_SYS_CLUSTERS + @n_dir_segs * @n_clusters_per_dir_seg end |
Instance Method Details
#call ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/smp_tool/virtual_volume/utils/converter_to_volume_io.rb', line 24 def call VolumeIO::VolumeIO.new( bootloader: _build_bootloader, home_block: _build_home_block, directory: _build_directory, data: _build_data, n_clusters_allocated: @n_clusters_allocated ) end |