di-ruby-lvm-attrib 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/generate_field_data +3 -3
- data/di-ruby-lvm-attrib.gemspec +1 -1
- data/lib/lvm/attributes/2.02.115(2)/lvs.yaml +7 -3
- data/lib/lvm/attributes/2.02.115(2)/lvsseg.yaml +8 -8
- data/lib/lvm/attributes/2.02.115(2)/pvs.yaml +7 -7
- data/lib/lvm/attributes/2.02.115(2)/vgs.yaml +4 -4
- data/update-lvm.sh +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11a662946e83398e5376599ab247f31a2db170c8
|
4
|
+
data.tar.gz: abe608ea8cfbf400b2143bef4e129d2c65a7be4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3596774d6b23a9df33cc31cf39538bc0fff2649fa52eebd269112e103a1c59b6cca8ea8f413b13b943b18f103d14cc56a6b25a364c820eaecc69b5aa9d4b89fc
|
7
|
+
data.tar.gz: bbfbfc6a27527972c01d14737470545429302e593ef413f8a42ec4b6bc53612f9593d55321206c7c6a9135c5e1a623f87655c685a4c3662d19e0f21e18d26083
|
data/bin/generate_field_data
CHANGED
@@ -102,7 +102,7 @@ File.readlines(lvm_source + COLUMNS_FILE).each do |line|
|
|
102
102
|
description = fields[8]
|
103
103
|
p app, general_type, specific_type, column, method, description if debug
|
104
104
|
|
105
|
-
if
|
105
|
+
if ["NUM", "SIZ"].include?(general_type)
|
106
106
|
attribute_type = TYPE_CONVERSION_MAP[specific_type]
|
107
107
|
if attribute_type.nil?
|
108
108
|
puts "Oops, missing type conversion data of column '#{specific_type}' use by '#{app}' which says its going to return a '#{specific_type}'"
|
@@ -117,7 +117,7 @@ File.readlines(lvm_source + COLUMNS_FILE).each do |line|
|
|
117
117
|
# dropped when passing column names as arguments as well, but i found a few
|
118
118
|
# with issues (seg_start).
|
119
119
|
case app
|
120
|
-
when "LVS"
|
120
|
+
when "LVS", "LVSINFOSTATUS"
|
121
121
|
method.sub!(%r{^lv_}, '')
|
122
122
|
when "SEGS"
|
123
123
|
method.sub!(%r{^seg_}, '')
|
@@ -139,7 +139,7 @@ File.readlines(lvm_source + COLUMNS_FILE).each do |line|
|
|
139
139
|
}
|
140
140
|
|
141
141
|
case app
|
142
|
-
when "LVS"
|
142
|
+
when "LVS", "LVSINFOSTATUS"
|
143
143
|
lvs << attribute
|
144
144
|
when "SEGS"
|
145
145
|
lvssegs << attribute
|
data/di-ruby-lvm-attrib.gemspec
CHANGED
@@ -42,6 +42,10 @@
|
|
42
42
|
:column: lv_allocation_policy
|
43
43
|
:type_hint: String
|
44
44
|
:description: LV allocation policy.
|
45
|
+
- :method: attr
|
46
|
+
:column: lv_attr
|
47
|
+
:type_hint: String
|
48
|
+
:description: Various attributes - see man page.
|
45
49
|
- :method: converting
|
46
50
|
:column: lv_converting
|
47
51
|
:type_hint: String
|
@@ -88,7 +92,7 @@
|
|
88
92
|
:description: Set if snapshot LV is being merged to origin.
|
89
93
|
- :method: metadata_size
|
90
94
|
:column: lv_metadata_size
|
91
|
-
:type_hint:
|
95
|
+
:type_hint: Integer
|
92
96
|
:description: For thin pools
|
93
97
|
- :method: minor
|
94
98
|
:column: lv_minor
|
@@ -124,7 +128,7 @@
|
|
124
128
|
:description: LV role.
|
125
129
|
- :method: size
|
126
130
|
:column: lv_size
|
127
|
-
:type_hint:
|
131
|
+
:type_hint: Integer
|
128
132
|
:description: Size of LV in current units.
|
129
133
|
- :method: skip_activation
|
130
134
|
:column: lv_skip_activation
|
@@ -172,7 +176,7 @@
|
|
172
176
|
:description: For snapshots
|
173
177
|
- :method: origin_size
|
174
178
|
:column: origin_size
|
175
|
-
:type_hint:
|
179
|
+
:type_hint: Integer
|
176
180
|
:description: For snapshots
|
177
181
|
- :method: pool_lv
|
178
182
|
:column: pool_lv
|
@@ -16,11 +16,11 @@
|
|
16
16
|
:description: For cache pools
|
17
17
|
- :method: chunk_size
|
18
18
|
:column: chunk_size
|
19
|
-
:type_hint:
|
19
|
+
:type_hint: Integer
|
20
20
|
:description: For snapshots
|
21
21
|
- :method: chunksize
|
22
22
|
:column: chunksize
|
23
|
-
:type_hint:
|
23
|
+
:type_hint: Integer
|
24
24
|
:description: For snapshots
|
25
25
|
- :method: devices
|
26
26
|
:column: devices
|
@@ -36,11 +36,11 @@
|
|
36
36
|
:description: For LogicalVolume to LogicalVolumeSegment relationship.
|
37
37
|
- :method: region_size
|
38
38
|
:column: region_size
|
39
|
-
:type_hint:
|
39
|
+
:type_hint: Integer
|
40
40
|
:description: For mirrors
|
41
41
|
- :method: regionsize
|
42
42
|
:column: regionsize
|
43
|
-
:type_hint:
|
43
|
+
:type_hint: Integer
|
44
44
|
:description: For mirrors
|
45
45
|
- :method: monitor
|
46
46
|
:column: seg_monitor
|
@@ -52,11 +52,11 @@
|
|
52
52
|
:description: Ranges of Physical Extents of underlying devices in command line format.
|
53
53
|
- :method: size
|
54
54
|
:column: seg_size
|
55
|
-
:type_hint:
|
55
|
+
:type_hint: Integer
|
56
56
|
:description: Size of segment in current units.
|
57
57
|
- :method: size_pe
|
58
58
|
:column: seg_size_pe
|
59
|
-
:type_hint:
|
59
|
+
:type_hint: Integer
|
60
60
|
:description: Size of segment in physical extents.
|
61
61
|
- :method: start
|
62
62
|
:column: seg_start
|
@@ -76,7 +76,7 @@
|
|
76
76
|
:description: Type of LV segment.
|
77
77
|
- :method: stripe_size
|
78
78
|
:column: stripe_size
|
79
|
-
:type_hint:
|
79
|
+
:type_hint: Integer
|
80
80
|
:description: For stripes
|
81
81
|
- :method: stripes
|
82
82
|
:column: stripes
|
@@ -84,7 +84,7 @@
|
|
84
84
|
:description: Number of stripes or mirror legs.
|
85
85
|
- :method: stripesize
|
86
86
|
:column: stripesize
|
87
|
-
:type_hint:
|
87
|
+
:type_hint: Integer
|
88
88
|
:description: For stripes
|
89
89
|
- :method: thin_count
|
90
90
|
:column: thin_count
|
@@ -4,7 +4,7 @@
|
|
4
4
|
---
|
5
5
|
- :method: dev_size
|
6
6
|
:column: dev_size
|
7
|
-
:type_hint:
|
7
|
+
:type_hint: Integer
|
8
8
|
:description: Size of underlying device in current units.
|
9
9
|
- :method: pe_start
|
10
10
|
:column: pe_start
|
@@ -20,7 +20,7 @@
|
|
20
20
|
:description: Various attributes - see man page.
|
21
21
|
- :method: ba_size
|
22
22
|
:column: pv_ba_size
|
23
|
-
:type_hint:
|
23
|
+
:type_hint: Integer
|
24
24
|
:description: Size of PV Bootloader Area in current units.
|
25
25
|
- :method: ba_start
|
26
26
|
:column: pv_ba_start
|
@@ -37,7 +37,7 @@
|
|
37
37
|
:description: Type of metadata.
|
38
38
|
- :method: free
|
39
39
|
:column: pv_free
|
40
|
-
:type_hint:
|
40
|
+
:type_hint: Integer
|
41
41
|
:description: Total amount of unallocated space in current units.
|
42
42
|
- :method: mda_count
|
43
43
|
:column: pv_mda_count
|
@@ -45,11 +45,11 @@
|
|
45
45
|
:description: Number of metadata areas on this device.
|
46
46
|
- :method: mda_free
|
47
47
|
:column: pv_mda_free
|
48
|
-
:type_hint:
|
48
|
+
:type_hint: Integer
|
49
49
|
:description: Free metadata area space on this device in current units.
|
50
50
|
- :method: mda_size
|
51
51
|
:column: pv_mda_size
|
52
|
-
:type_hint:
|
52
|
+
:type_hint: Integer
|
53
53
|
:description: Size of smallest metadata area on this device in current units.
|
54
54
|
- :method: mda_used_count
|
55
55
|
:column: pv_mda_used_count
|
@@ -73,7 +73,7 @@
|
|
73
73
|
:description: Total number of Physical Extents.
|
74
74
|
- :method: size
|
75
75
|
:column: pv_size
|
76
|
-
:type_hint:
|
76
|
+
:type_hint: Integer
|
77
77
|
:description: Size of PV in current units.
|
78
78
|
- :method: tags
|
79
79
|
:column: pv_tags
|
@@ -81,7 +81,7 @@
|
|
81
81
|
:description: Tags
|
82
82
|
- :method: used
|
83
83
|
:column: pv_used
|
84
|
-
:type_hint:
|
84
|
+
:type_hint: Integer
|
85
85
|
:description: Total amount of allocated space in current units.
|
86
86
|
- :method: uuid
|
87
87
|
:column: pv_uuid
|
@@ -48,7 +48,7 @@
|
|
48
48
|
:description: Total number of Physical Extents.
|
49
49
|
- :method: extent_size
|
50
50
|
:column: vg_extent_size
|
51
|
-
:type_hint:
|
51
|
+
:type_hint: Integer
|
52
52
|
:description: Size of Physical Extents in current units.
|
53
53
|
- :method: fmt
|
54
54
|
:column: vg_fmt
|
@@ -72,11 +72,11 @@
|
|
72
72
|
:description: Number of metadata areas on this VG.
|
73
73
|
- :method: mda_free
|
74
74
|
:column: vg_mda_free
|
75
|
-
:type_hint:
|
75
|
+
:type_hint: Integer
|
76
76
|
:description: Free metadata area space for this VG in current units.
|
77
77
|
- :method: mda_size
|
78
78
|
:column: vg_mda_size
|
79
|
-
:type_hint:
|
79
|
+
:type_hint: Integer
|
80
80
|
:description: Size of smallest metadata area for this VG in current units.
|
81
81
|
- :method: mda_used_count
|
82
82
|
:column: vg_mda_used_count
|
@@ -104,7 +104,7 @@
|
|
104
104
|
:description: Revision number of internal metadata. Incremented whenever it changes.
|
105
105
|
- :method: size
|
106
106
|
:column: vg_size
|
107
|
-
:type_hint:
|
107
|
+
:type_hint: Integer
|
108
108
|
:description: Total size of VG in current units.
|
109
109
|
- :method: sysid
|
110
110
|
:column: vg_sysid
|
data/update-lvm.sh
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: di-ruby-lvm-attrib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Symons
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-04-27 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A list of attributes for LVM objects
|
15
15
|
email:
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.4.
|
151
|
+
rubygems_version: 2.4.6
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: A list of attributes for LVM objects
|