struct

Krikri::PluginHelpers::LvolSize::Parsed

Inherits Struct < Value < Object

Constructors

new(operator : String | Nil, percent : Int32 | Nil, whole : String | Nil, value : String, opt : String, value_unit : String, units_flag : String)
Source

Instance methods

clone
Source
copy_with(operator _operator = @operator, percent _percent = @percent, whole _whole = @whole, value _value = @value, opt _opt = @opt, value_unit _value_unit = @value_unit, units_flag _units_flag = @units_flag)
Source
operator

"+", "-" or nil - the resize direction prefix

opt

"L" (absolute/--size) or "l" (extents/--extents)

percent

the N of N%WHOLE, nil for absolute sizes

units_flag

the --units flag value vgs/lvs are queried with: real module's unit variable - always "m" for extents, else value_unit

value

the bare numeric string (operator and unit stripped)

value_unit

unit letter appended to the -L/-l value: "" for extents, the (possibly implicit) unit letter otherwise

whole

"VG"/"PVS"/"FREE"/"ORIGIN", nil for absolute sizes