di-ruby-lvm-attrib 0.0.26 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e89c7d79c1a7bfaf1de8ea32da8e3cab2568c8ed
4
- data.tar.gz: 7e69ec4d8c054fb9b771dde38c8b22466bf88695
3
+ metadata.gz: e6556bafec70c707ceee9ed9f89b6ce001153104
4
+ data.tar.gz: 73a8f9f0145ea49aff285ba6aab64b8ff629e433
5
5
  SHA512:
6
- metadata.gz: 57af171a50101091e1d1d85185c78053005218c04a3a04d34282eafc71bd25b7d350b14905d336c2d6ef80660b8b44f8641a5df93ea52e77a238a6d80ee84e3d
7
- data.tar.gz: 3f8ce02c0a44b2f979d965a82b855ecf7480aac29fd8b23a25372904b99c6ee6193418f4b617a4375cf530d47f720b15f6995dae986ac869ac9d31f6ea9bb01d
6
+ metadata.gz: 8fe74e20a3816133c612b7909ed956f9ee742829c6be3a1571155775613bc252afa6dfca66d3d4e98f627870b5059cf4bbdde411322cef2b4314bb3cd0e20d0c
7
+ data.tar.gz: 210f94c2f8b9961f35f20637f278685cc722d0def90d0611bf30568440afa2751b2bdca932c38847cea17f5fba4da8c53152f6a203cd15f5ea43375656492c17
@@ -0,0 +1,3 @@
1
+ [submodule "lvm2"]
2
+ path = lvm2
3
+ url = git://git.fedorahosted.org/git/lvm2.git
@@ -1,3 +1,10 @@
1
+ # 0.0.27 (2016-09-06
2
+ - Added LVM attributes for version 2.02.161(2)
3
+ - Added LVM attributes for version 2.02.158(2)
4
+ - Reworked update script to use git submodules rather than relying on the user
5
+ to check out the LVM source.
6
+ - Added LVM attributes for version 2.0.2.133(2)
7
+
1
8
  # 0.0.26 (2016-05-12)
2
9
  - Added LVM attributes for version 2.02.149
3
10
  - Added LVM attributes for version 2.02.143(2)
data/README.md CHANGED
@@ -22,25 +22,27 @@ At their core these files exist to determine which arguments to pass lvs/vgs/pvs
22
22
  - `sudo gem install ruby-lvm-attrib`
23
23
 
24
24
  ## ADDING ATTRIBUTES:
25
+
25
26
  To add attributes:
26
- - Download and extract LVM2 source version from: [http://git.fedorahosted.org/cgit/lvm2.git/refs/tags](http://git.fedorahosted.org/cgit/lvm2.git/refs/tags)
27
+
28
+ Use [update-lvm.sh](update-lvm.sh) script to add new version.
29
+ Find the interested LVM2 tag from [LVM2 Repository](https://git.fedorahosted.org/cgit/lvm2.git/refs/tags).
30
+
27
31
  - Fork this repository
28
32
  - `git clone your-forked-repo`
29
33
  - `cd your-forked-repo`
30
- - `git checkout -b mybranch`
31
- - `bin/generate_field_data path/to/lvm2-source`
32
- - See missing attribute type note below if there's issues, otherwise will just return "Done."
34
+ - `./update-lvm.sh v2_02_155`
33
35
 
34
- - `mv LVM_VERSION_FULL lib/lvm/attributes/LVM_VERSION`
35
- - LVM_VERSION_FULL being something like 2.02.86(2)-cvs or 2.02.98(2)-git
36
- - LVM_VERSION being something like 2.02.86(2) or 2.02.98(2)
36
+ The script will add `lib/lvm/attributes/LVM_VERSION` where `LVM_VERSION` being something like `2.02.86(2)` or `2.02.98(2)`.
37
37
 
38
- - `git commit -am "Added LVM_VERSION attributes"`
39
- - `git push origin mybranch`
40
- - Submit PR to this repository. **Please make sure to point your pull at the
41
- - `next` branch -- NOT MASTER!**
38
+ If the script will not error, it will create new branch and commit `Added LVM_VERSION attributes`.
42
39
 
43
- You can have look at `update-lvm.sh` that does above steps (except git changes) automatically.
40
+ In case of error, see missing attribute type note below.
41
+
42
+ If all is well, publish the changes and make Pull Request from GitHub web:
43
+
44
+ - `git push origin mybranch`
45
+ - Submit PR to this repository. **Please make sure to point your pull at the `next` branch -- NOT MASTER!**
44
46
 
45
47
  ### MISSING ATTRIBUTE TYPE:
46
48
  If you get an error like the below:
@@ -2,7 +2,7 @@ require 'yaml'
2
2
 
3
3
  module LVM
4
4
  module Attributes
5
- VERSION = '0.0.26'
5
+ VERSION = '0.0.27'
6
6
 
7
7
  def load(version, name)
8
8
  cwd = File.dirname(__FILE__)
@@ -0,0 +1,260 @@
1
+ # These are column to object attribute mappings
2
+ # generated by bin/generate_field_data based on
3
+ # ../lvm2-2_02_133/lib/report/columns.h
4
+ ---
5
+ - :method: convert_lv
6
+ :column: convert_lv
7
+ :type_hint: String
8
+ :description: For lvconvert
9
+ - :method: convert_lv_uuid
10
+ :column: convert_lv_uuid
11
+ :type_hint: String
12
+ :description: For lvconvert
13
+ - :method: copy_percent
14
+ :column: copy_percent
15
+ :type_hint: String
16
+ :description: For RAID
17
+ - :method: data_lv
18
+ :column: data_lv
19
+ :type_hint: String
20
+ :description: For thin and cache pools
21
+ - :method: data_lv_uuid
22
+ :column: data_lv_uuid
23
+ :type_hint: String
24
+ :description: For thin and cache pools
25
+ - :method: data_percent
26
+ :column: data_percent
27
+ :type_hint: String
28
+ :description: For snapshot and thin pools and volumes
29
+ - :method: active
30
+ :column: lv_active
31
+ :type_hint: String
32
+ :description: Active state of the LV.
33
+ - :method: active_exclusively
34
+ :column: lv_active_exclusively
35
+ :type_hint: String
36
+ :description: Set if the LV is active exclusively.
37
+ - :method: active_locally
38
+ :column: lv_active_locally
39
+ :type_hint: String
40
+ :description: Set if the LV is active locally.
41
+ - :method: active_remotely
42
+ :column: lv_active_remotely
43
+ :type_hint: String
44
+ :description: Set if the LV is active remotely.
45
+ - :method: allocation_locked
46
+ :column: lv_allocation_locked
47
+ :type_hint: String
48
+ :description: Set if LV is locked against allocation changes.
49
+ - :method: allocation_policy
50
+ :column: lv_allocation_policy
51
+ :type_hint: String
52
+ :description: LV allocation policy.
53
+ - :method: ancestors
54
+ :column: lv_ancestors
55
+ :type_hint: String
56
+ :description: Ancestors of this LV.
57
+ - :method: attr
58
+ :column: lv_attr
59
+ :type_hint: String
60
+ :description: Various attributes - see man page.
61
+ - :method: converting
62
+ :column: lv_converting
63
+ :type_hint: String
64
+ :description: Set if LV is being converted.
65
+ - :method: descendants
66
+ :column: lv_descendants
67
+ :type_hint: String
68
+ :description: Descendants of this LV.
69
+ - :method: dm_path
70
+ :column: lv_dm_path
71
+ :type_hint: String
72
+ :description: Internal device-mapper pathname for LV (in /dev/mapper directory).
73
+ - :method: fixed_minor
74
+ :column: lv_fixed_minor
75
+ :type_hint: String
76
+ :description: Set if LV has fixed minor number assigned.
77
+ - :method: full_name
78
+ :column: lv_full_name
79
+ :type_hint: String
80
+ :description: Full name of LV including its VG
81
+ - :method: host
82
+ :column: lv_host
83
+ :type_hint: String
84
+ :description: Creation host of the LV
85
+ - :method: image_synced
86
+ :column: lv_image_synced
87
+ :type_hint: String
88
+ :description: Set if mirror/RAID image is synchronized.
89
+ - :method: initial_image_sync
90
+ :column: lv_initial_image_sync
91
+ :type_hint: String
92
+ :description: Set if mirror/RAID images underwent initial resynchronization.
93
+ - :method: layout
94
+ :column: lv_layout
95
+ :type_hint: String
96
+ :description: LV layout.
97
+ - :method: lockargs
98
+ :column: lv_lockargs
99
+ :type_hint: String
100
+ :description: Lock args of the LV used by lvmlockd.
101
+ - :method: major
102
+ :column: lv_major
103
+ :type_hint: String
104
+ :description: Persistent major number or -1 if not persistent.
105
+ - :method: merge_failed
106
+ :column: lv_merge_failed
107
+ :type_hint: String
108
+ :description: Set if snapshot merge failed.
109
+ - :method: merging
110
+ :column: lv_merging
111
+ :type_hint: String
112
+ :description: Set if snapshot LV is being merged to origin.
113
+ - :method: metadata_size
114
+ :column: lv_metadata_size
115
+ :type_hint: Integer
116
+ :description: For thin and cache pools
117
+ - :method: minor
118
+ :column: lv_minor
119
+ :type_hint: String
120
+ :description: Persistent minor number or -1 if not persistent.
121
+ - :method: modules
122
+ :column: lv_modules
123
+ :type_hint: String
124
+ :description: Kernel device-mapper modules required for this LV.
125
+ - :method: name
126
+ :column: lv_name
127
+ :type_hint: String
128
+ :description: Name. LVs created for internal use are enclosed in brackets.
129
+ - :method: parent
130
+ :column: lv_parent
131
+ :type_hint: String
132
+ :description: For LVs that are components of another LV
133
+ - :method: path
134
+ :column: lv_path
135
+ :type_hint: String
136
+ :description: Full pathname for LV. Blank for internal LVs.
137
+ - :method: profile
138
+ :column: lv_profile
139
+ :type_hint: String
140
+ :description: Configuration profile attached to this LV.
141
+ - :method: read_ahead
142
+ :column: lv_read_ahead
143
+ :type_hint: String
144
+ :description: Read ahead setting in current units.
145
+ - :method: role
146
+ :column: lv_role
147
+ :type_hint: String
148
+ :description: LV role.
149
+ - :method: size
150
+ :column: lv_size
151
+ :type_hint: Integer
152
+ :description: Size of LV in current units.
153
+ - :method: skip_activation
154
+ :column: lv_skip_activation
155
+ :type_hint: String
156
+ :description: Set if LV is skipped on activation.
157
+ - :method: snapshot_invalid
158
+ :column: lv_snapshot_invalid
159
+ :type_hint: String
160
+ :description: Set if snapshot LV is invalid.
161
+ - :method: tags
162
+ :column: lv_tags
163
+ :type_hint: String
164
+ :description: Tags
165
+ - :method: time
166
+ :column: lv_time
167
+ :type_hint: String
168
+ :description: Creation time of the LV
169
+ - :method: uuid
170
+ :column: lv_uuid
171
+ :type_hint: String
172
+ :description: Unique identifier.
173
+ - :method: when_full
174
+ :column: lv_when_full
175
+ :type_hint: String
176
+ :description: For thin pools
177
+ - :method: metadata_lv
178
+ :column: metadata_lv
179
+ :type_hint: String
180
+ :description: For thin and cache pools
181
+ - :method: metadata_lv_uuid
182
+ :column: metadata_lv_uuid
183
+ :type_hint: String
184
+ :description: For thin and cache pools
185
+ - :method: metadata_percent
186
+ :column: metadata_percent
187
+ :type_hint: String
188
+ :description: For thin pools
189
+ - :method: mirror_log
190
+ :column: mirror_log
191
+ :type_hint: String
192
+ :description: For mirrors
193
+ - :method: mirror_log_uuid
194
+ :column: mirror_log_uuid
195
+ :type_hint: String
196
+ :description: For mirrors
197
+ - :method: move_pv
198
+ :column: move_pv
199
+ :type_hint: String
200
+ :description: For pvmove
201
+ - :method: move_pv_uuid
202
+ :column: move_pv_uuid
203
+ :type_hint: String
204
+ :description: For pvmove
205
+ - :method: origin
206
+ :column: origin
207
+ :type_hint: String
208
+ :description: For snapshots
209
+ - :method: origin_size
210
+ :column: origin_size
211
+ :type_hint: Integer
212
+ :description: For snapshots
213
+ - :method: origin_uuid
214
+ :column: origin_uuid
215
+ :type_hint: String
216
+ :description: For snapshots
217
+ - :method: pool_lv
218
+ :column: pool_lv
219
+ :type_hint: String
220
+ :description: For thin volumes
221
+ - :method: pool_lv_uuid
222
+ :column: pool_lv_uuid
223
+ :type_hint: String
224
+ :description: For thin volumes
225
+ - :method: raid_max_recovery_rate
226
+ :column: raid_max_recovery_rate
227
+ :type_hint: Integer
228
+ :description: For RAID1
229
+ - :method: raid_min_recovery_rate
230
+ :column: raid_min_recovery_rate
231
+ :type_hint: Integer
232
+ :description: For RAID1
233
+ - :method: raid_mismatch_count
234
+ :column: raid_mismatch_count
235
+ :type_hint: Integer
236
+ :description: For RAID
237
+ - :method: raid_sync_action
238
+ :column: raid_sync_action
239
+ :type_hint: String
240
+ :description: For RAID
241
+ - :method: raid_write_behind
242
+ :column: raid_write_behind
243
+ :type_hint: Integer
244
+ :description: For RAID1
245
+ - :method: seg_count
246
+ :column: seg_count
247
+ :type_hint: Integer
248
+ :description: Number of segments in LV.
249
+ - :method: snap_percent
250
+ :column: snap_percent
251
+ :type_hint: String
252
+ :description: For snapshots
253
+ - :method: sync_percent
254
+ :column: sync_percent
255
+ :type_hint: String
256
+ :description: For RAID
257
+ - :method: vg_uuid
258
+ :column: vg_uuid
259
+ :type_hint: String
260
+ :description: For VolumeGroup to LogicalVolume relationship.
@@ -0,0 +1,113 @@
1
+ # These are column to object attribute mappings
2
+ # generated by bin/generate_field_data based on
3
+ # ../lvm2-2_02_133/lib/report/columns.h
4
+ ---
5
+ - :method: cache_policy
6
+ :column: cache_policy
7
+ :type_hint: String
8
+ :description: The cache policy (cached segments only).
9
+ - :method: cache_settings
10
+ :column: cache_settings
11
+ :type_hint: String
12
+ :description: Cache settings/parameters (cached segments only).
13
+ - :method: cachemode
14
+ :column: cachemode
15
+ :type_hint: String
16
+ :description: For cache pools
17
+ - :method: chunk_size
18
+ :column: chunk_size
19
+ :type_hint: Integer
20
+ :description: For snapshots
21
+ - :method: chunksize
22
+ :column: chunksize
23
+ :type_hint: Integer
24
+ :description: For snapshots
25
+ - :method: devices
26
+ :column: devices
27
+ :type_hint: String
28
+ :description: Underlying devices used with starting extent numbers.
29
+ - :method: discards
30
+ :column: discards
31
+ :type_hint: String
32
+ :description: For thin pools
33
+ - :method: lv_uuid
34
+ :column: lv_uuid
35
+ :type_hint: String
36
+ :description: For LogicalVolume to LogicalVolumeSegment relationship.
37
+ - :method: metadata_devices
38
+ :column: metadata_devices
39
+ :type_hint: String
40
+ :description: Underlying metadata devices used with starting extent numbers.
41
+ - :method: region_size
42
+ :column: region_size
43
+ :type_hint: Integer
44
+ :description: For mirrors
45
+ - :method: regionsize
46
+ :column: regionsize
47
+ :type_hint: Integer
48
+ :description: For mirrors
49
+ - :method: metadata_le_ranges
50
+ :column: seg_metadata_le_ranges
51
+ :type_hint: String
52
+ :description: Ranges of Logical Extents of underlying metadata devices in command
53
+ line format.
54
+ - :method: monitor
55
+ :column: seg_monitor
56
+ :type_hint: String
57
+ :description: Dmeventd monitoring status of the segment.
58
+ - :method: pe_ranges
59
+ :column: seg_pe_ranges
60
+ :type_hint: String
61
+ :description: Ranges of Physical Extents of underlying devices in command line format.
62
+ - :method: size
63
+ :column: seg_size
64
+ :type_hint: Integer
65
+ :description: Size of segment in current units.
66
+ - :method: size_pe
67
+ :column: seg_size_pe
68
+ :type_hint: Integer
69
+ :description: Size of segment in physical extents.
70
+ - :method: start
71
+ :column: seg_start
72
+ :type_hint: Integer
73
+ :description: Offset within the LV to the start of the segment in current units.
74
+ - :method: start_pe
75
+ :column: seg_start_pe
76
+ :type_hint: Integer
77
+ :description: Offset within the LV to the start of the segment in physical extents.
78
+ - :method: tags
79
+ :column: seg_tags
80
+ :type_hint: String
81
+ :description: Tags
82
+ - :method: segtype
83
+ :column: segtype
84
+ :type_hint: String
85
+ :description: Type of LV segment.
86
+ - :method: stripe_size
87
+ :column: stripe_size
88
+ :type_hint: Integer
89
+ :description: For stripes
90
+ - :method: stripes
91
+ :column: stripes
92
+ :type_hint: Integer
93
+ :description: Number of stripes or mirror legs.
94
+ - :method: stripesize
95
+ :column: stripesize
96
+ :type_hint: Integer
97
+ :description: For stripes
98
+ - :method: thin_count
99
+ :column: thin_count
100
+ :type_hint: Integer
101
+ :description: For thin pools
102
+ - :method: thin_id
103
+ :column: thin_id
104
+ :type_hint: Integer
105
+ :description: For thin volume
106
+ - :method: transaction_id
107
+ :column: transaction_id
108
+ :type_hint: Integer
109
+ :description: For thin pools
110
+ - :method: zero
111
+ :column: zero
112
+ :type_hint: String
113
+ :description: For thin pools