Sha256: 01eb72f407a334c59ebf0e7c82381ed1eafaa2065708e68e0c6d0e61c1227ead
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
module VirtDisk class Disk < ClientHead DEFAULT_BLOCK_SIZE = 512 DISK_SIG_OFFSET = 0x1B8 DISK_SIG_SIZE = 4 def initialize(up_stream_module) super end def block_size return @up_stream_module.block_size if @up_stream_module.respond_to?(:block_size) DEFAULT_BLOCK_SIZE end export :block_size def disk_sig @disk_sig ||= @up_stream_module.mod_read(DISK_SIG_OFFSET, DISK_SIG_SIZE).unpack('L')[0] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
virt_disk-0.0.1 | lib/virt_disk/disk.rb |