Class: Lvm2DiskIO::Segment
- Inherits:
-
Object
- Object
- Lvm2DiskIO::Segment
- Defined in:
- lib/VolumeManager/LVM/lvm2disk.rb
Overview
Like LvSegment but optimized for logical volume IO
Instance Attribute Summary collapse
-
#byteRange ⇒ Object
Returns the value of attribute byteRange.
-
#lvSeg ⇒ Object
Returns the value of attribute lvSeg.
-
#segSize ⇒ Object
Returns the value of attribute segSize.
-
#stripes ⇒ Object
Returns the value of attribute stripes.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #endByteAddr ⇒ Object
-
#initialize(startByte, endByte, type = nil) ⇒ Segment
constructor
A new instance of Segment.
- #startByteAddr ⇒ Object
Constructor Details
#initialize(startByte, endByte, type = nil) ⇒ Segment
Returns a new instance of Segment.
141 142 143 144 145 146 |
# File 'lib/VolumeManager/LVM/lvm2disk.rb', line 141 def initialize(startByte, endByte, type = nil) @byteRange = Range.new(startByte, endByte, false) @type = type @segSize = endByte - startByte + 1 @stripes = [] end |
Instance Attribute Details
#byteRange ⇒ Object
Returns the value of attribute byteRange.
138 139 140 |
# File 'lib/VolumeManager/LVM/lvm2disk.rb', line 138 def byteRange @byteRange end |
#lvSeg ⇒ Object
Returns the value of attribute lvSeg.
139 140 141 |
# File 'lib/VolumeManager/LVM/lvm2disk.rb', line 139 def lvSeg @lvSeg end |
#segSize ⇒ Object
Returns the value of attribute segSize.
138 139 140 |
# File 'lib/VolumeManager/LVM/lvm2disk.rb', line 138 def segSize @segSize end |
#stripes ⇒ Object
Returns the value of attribute stripes.
138 139 140 |
# File 'lib/VolumeManager/LVM/lvm2disk.rb', line 138 def stripes @stripes end |
#type ⇒ Object
Returns the value of attribute type.
138 139 140 |
# File 'lib/VolumeManager/LVM/lvm2disk.rb', line 138 def type @type end |
Instance Method Details
#endByteAddr ⇒ Object
152 153 154 |
# File 'lib/VolumeManager/LVM/lvm2disk.rb', line 152 def endByteAddr @byteRange.end end |
#startByteAddr ⇒ Object
148 149 150 |
# File 'lib/VolumeManager/LVM/lvm2disk.rb', line 148 def startByteAddr @byteRange.begin end |