class VirtDisk::Partition
Constants
- DOS_PARTITION_ENTRY
- DOS_PT_START
- DOS_SIG
- GPT_SIG
- MBR_SIZE
- PTE_LEN
Attributes
end_lba[R]
pnum[R]
ptype[R]
start_lba[R]
Public Class Methods
new(disk, ptype, pnum, start_lba, end_lba)
click to toggle source
Calls superclass method
VirtDisk::ClientHead::new
# File lib/virt_disk/partition.rb, line 26 def initialize(disk, ptype, pnum, start_lba, end_lba) super(disk) @start_lba = start_lba @end_lba = end_lba @ptype = ptype @pnum = pnum @start_byte_addr = @start_lba * block_size @end_byte_addr = @end_lba * block_size @seek_pos = @start_byte_addr @size = @end_byte_addr - @start_byte_addr end