di-ruby-lvm-attrib 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt CHANGED
@@ -26,6 +26,11 @@ lib/lvm/attributes/2.02.30/lvsseg.yaml
26
26
  lib/lvm/attributes/2.02.30/vgs.yaml
27
27
  lib/lvm/attributes/2.02.30/lvs.yaml
28
28
  lib/lvm/attributes/2.02.30/pvsseg.yaml
29
+ lib/lvm/attributes/2.02.95(2)/lvs.yaml
30
+ lib/lvm/attributes/2.02.95(2)/lvsseg.yaml
31
+ lib/lvm/attributes/2.02.95(2)/pvs.yaml
32
+ lib/lvm/attributes/2.02.95(2)/pvsseg.yaml
33
+ lib/lvm/attributes/2.02.95(2)/vgs.yaml
29
34
  Manifest.txt
30
35
  Rakefile
31
36
  README.txt
@@ -51,7 +51,16 @@ TYPE_CONVERSION_MAP = {
51
51
  "vgmdafree" => "Integer",
52
52
  "vgmdasize" => "Integer",
53
53
  # Weird one, can be "auto" or size32
54
- "lvreadahead" => "String"
54
+ "lvreadahead" => "String",
55
+ "lvmetadatasize" => "Integer",
56
+ "datapercent" => "Float",
57
+ "metadatapercent" => "Float",
58
+ "pvmdasused" => "Integer",
59
+ "vgmdasused" => "Integer",
60
+ "vgmdacopies" => "Integer",
61
+ "thincount" => "Integer",
62
+ "thinzero" => "Integer",
63
+ "transactionid" => "Integer"
55
64
  }
56
65
 
57
66
  lvm_source = ARGV[0]
@@ -0,0 +1,124 @@
1
+ # These are column to object attribute mappings
2
+ # generated by ../../../bin/generate_field_data based on
3
+ # /home/ec2-user/lvm2-2_02_95/lib/report/columns.h
4
+ ---
5
+ - :method: convert_lv
6
+ :column: convert_lv
7
+ :type_hint: String
8
+ :description: For lvconvert
9
+ - :method: copy_percent
10
+ :column: copy_percent
11
+ :type_hint: Float
12
+ :description: For mirrors and pvmove
13
+ - :method: data_lv
14
+ :column: data_lv
15
+ :type_hint: String
16
+ :description: For thin pools
17
+ - :method: data_percent
18
+ :column: data_percent
19
+ :type_hint: Float
20
+ :description: For snapshot and thin pools and volumes
21
+ - :method: attr
22
+ :column: lv_attr
23
+ :type_hint: String
24
+ :description: Various attributes - see man page.
25
+ - :method: host
26
+ :column: lv_host
27
+ :type_hint: String
28
+ :description: Creation host of the LV
29
+ - :method: kernel_major
30
+ :column: lv_kernel_major
31
+ :type_hint: String
32
+ :description: Currently assigned major number or -1 if LV is not active.
33
+ - :method: kernel_minor
34
+ :column: lv_kernel_minor
35
+ :type_hint: String
36
+ :description: Currently assigned minor number or -1 if LV is not active.
37
+ - :method: kernel_read_ahead
38
+ :column: lv_kernel_read_ahead
39
+ :type_hint: Integer
40
+ :description: Currently-in-use read ahead setting in current units.
41
+ - :method: major
42
+ :column: lv_major
43
+ :type_hint: Integer
44
+ :description: Persistent major number or -1 if not persistent.
45
+ - :method: metadata_size
46
+ :column: lv_metadata_size
47
+ :type_hint: Integer
48
+ :description: For thin pools
49
+ - :method: minor
50
+ :column: lv_minor
51
+ :type_hint: Integer
52
+ :description: Persistent minor number or -1 if not persistent.
53
+ - :method: name
54
+ :column: lv_name
55
+ :type_hint: String
56
+ :description: Name. LVs created for internal use are enclosed in brackets.
57
+ - :method: path
58
+ :column: lv_path
59
+ :type_hint: String
60
+ :description: Full pathname for LV.
61
+ - :method: read_ahead
62
+ :column: lv_read_ahead
63
+ :type_hint: String
64
+ :description: Read ahead setting in current units.
65
+ - :method: size
66
+ :column: lv_size
67
+ :type_hint: Integer
68
+ :description: Size of LV in current units.
69
+ - :method: tags
70
+ :column: lv_tags
71
+ :type_hint: String
72
+ :description: Tags
73
+ - :method: time
74
+ :column: lv_time
75
+ :type_hint: String
76
+ :description: Creation time of the LV
77
+ - :method: uuid
78
+ :column: lv_uuid
79
+ :type_hint: String
80
+ :description: Unique identifier.
81
+ - :method: metadata_lv
82
+ :column: metadata_lv
83
+ :type_hint: String
84
+ :description: For thin pools
85
+ - :method: metadata_percent
86
+ :column: metadata_percent
87
+ :type_hint: Float
88
+ :description: For thin pools
89
+ - :method: mirror_log
90
+ :column: mirror_log
91
+ :type_hint: String
92
+ :description: For mirrors
93
+ - :method: modules
94
+ :column: modules
95
+ :type_hint: String
96
+ :description: Kernel device-mapper modules required for this LV.
97
+ - :method: move_pv
98
+ :column: move_pv
99
+ :type_hint: String
100
+ :description: For pvmove
101
+ - :method: origin
102
+ :column: origin
103
+ :type_hint: String
104
+ :description: For snapshots
105
+ - :method: origin_size
106
+ :column: origin_size
107
+ :type_hint: Integer
108
+ :description: For snapshots
109
+ - :method: pool_lv
110
+ :column: pool_lv
111
+ :type_hint: String
112
+ :description: For thin volumes
113
+ - :method: seg_count
114
+ :column: seg_count
115
+ :type_hint: Integer
116
+ :description: Number of segments in LV.
117
+ - :method: snap_percent
118
+ :column: snap_percent
119
+ :type_hint: Float
120
+ :description: For snapshots
121
+ - :method: vg_uuid
122
+ :column: vg_uuid
123
+ :type_hint: String
124
+ :description: For VolumeGroup to LogicalVolume relationship.
@@ -0,0 +1,76 @@
1
+ # These are column to object attribute mappings
2
+ # generated by ../../../bin/generate_field_data based on
3
+ # /home/ec2-user/lvm2-2_02_95/lib/report/columns.h
4
+ ---
5
+ - :method: chunk_size
6
+ :column: chunk_size
7
+ :type_hint: Integer
8
+ :description: For snapshots
9
+ - :method: chunksize
10
+ :column: chunksize
11
+ :type_hint: Integer
12
+ :description: For snapshots
13
+ - :method: devices
14
+ :column: devices
15
+ :type_hint: String
16
+ :description: Underlying devices used with starting extent numbers.
17
+ - :method: lv_uuid
18
+ :column: lv_uuid
19
+ :type_hint: String
20
+ :description: For LogicalVolume to LogicalVolumeSegment relationship.
21
+ - :method: region_size
22
+ :column: region_size
23
+ :type_hint: Integer
24
+ :description: For mirrors
25
+ - :method: regionsize
26
+ :column: regionsize
27
+ :type_hint: Integer
28
+ :description: For mirrors
29
+ - :method: pe_ranges
30
+ :column: seg_pe_ranges
31
+ :type_hint: String
32
+ :description: Ranges of Physical Extents of underlying devices in command line format.
33
+ - :method: size
34
+ :column: seg_size
35
+ :type_hint: Integer
36
+ :description: Size of segment in current units.
37
+ - :method: start
38
+ :column: seg_start
39
+ :type_hint: Integer
40
+ :description: Offset within the LV to the start of the segment in current units.
41
+ - :method: start_pe
42
+ :column: seg_start_pe
43
+ :type_hint: Integer
44
+ :description: Offset within the LV to the start of the segment in physical extents.
45
+ - :method: tags
46
+ :column: seg_tags
47
+ :type_hint: String
48
+ :description: Tags
49
+ - :method: segtype
50
+ :column: segtype
51
+ :type_hint: String
52
+ :description: Type of LV segment.
53
+ - :method: stripe_size
54
+ :column: stripe_size
55
+ :type_hint: Integer
56
+ :description: For stripes
57
+ - :method: stripes
58
+ :column: stripes
59
+ :type_hint: Integer
60
+ :description: Number of stripes or mirror legs.
61
+ - :method: stripesize
62
+ :column: stripesize
63
+ :type_hint: Integer
64
+ :description: For stripes
65
+ - :method: thin_count
66
+ :column: thin_count
67
+ :type_hint: Integer
68
+ :description: For thin pools
69
+ - :method: transaction_id
70
+ :column: transaction_id
71
+ :type_hint: Integer
72
+ :description: For thin pools
73
+ - :method: zero
74
+ :column: zero
75
+ :type_hint: Integer
76
+ :description: For thin pools
@@ -0,0 +1,72 @@
1
+ # These are column to object attribute mappings
2
+ # generated by ../../../bin/generate_field_data based on
3
+ # /home/ec2-user/lvm2-2_02_95/lib/report/columns.h
4
+ ---
5
+ - :method: dev_size
6
+ :column: dev_size
7
+ :type_hint: Integer
8
+ :description: Size of underlying device in current units.
9
+ - :method: pe_start
10
+ :column: pe_start
11
+ :type_hint: Integer
12
+ :description: Offset to the start of data on the underlying device.
13
+ - :method: attr
14
+ :column: pv_attr
15
+ :type_hint: String
16
+ :description: Various attributes - see man page.
17
+ - :method: fmt
18
+ :column: pv_fmt
19
+ :type_hint: String
20
+ :description: Type of metadata.
21
+ - :method: free
22
+ :column: pv_free
23
+ :type_hint: Integer
24
+ :description: Total amount of unallocated space in current units.
25
+ - :method: mda_count
26
+ :column: pv_mda_count
27
+ :type_hint: Integer
28
+ :description: Number of metadata areas on this device.
29
+ - :method: mda_free
30
+ :column: pv_mda_free
31
+ :type_hint: Integer
32
+ :description: Free metadata area space on this device in current units.
33
+ - :method: mda_size
34
+ :column: pv_mda_size
35
+ :type_hint: Integer
36
+ :description: Size of smallest metadata area on this device in current units.
37
+ - :method: mda_used_count
38
+ :column: pv_mda_used_count
39
+ :type_hint: Integer
40
+ :description: Number of metadata areas in use on this device.
41
+ - :method: name
42
+ :column: pv_name
43
+ :type_hint: String
44
+ :description: Name.
45
+ - :method: pe_alloc_count
46
+ :column: pv_pe_alloc_count
47
+ :type_hint: Integer
48
+ :description: Total number of allocated Physical Extents.
49
+ - :method: pe_count
50
+ :column: pv_pe_count
51
+ :type_hint: Integer
52
+ :description: Total number of Physical Extents.
53
+ - :method: size
54
+ :column: pv_size
55
+ :type_hint: Integer
56
+ :description: Size of PV in current units.
57
+ - :method: tags
58
+ :column: pv_tags
59
+ :type_hint: String
60
+ :description: Tags
61
+ - :method: used
62
+ :column: pv_used
63
+ :type_hint: Integer
64
+ :description: Total amount of allocated space in current units.
65
+ - :method: uuid
66
+ :column: pv_uuid
67
+ :type_hint: String
68
+ :description: Unique identifier.
69
+ - :method: vg_uuid
70
+ :column: vg_uuid
71
+ :type_hint: String
72
+ :description: For VolumeGroup to PhysicalVolume relationship.
@@ -0,0 +1,16 @@
1
+ # These are column to object attribute mappings
2
+ # generated by ../../../bin/generate_field_data based on
3
+ # /home/ec2-user/lvm2-2_02_95/lib/report/columns.h
4
+ ---
5
+ - :method: pv_uuid
6
+ :column: pv_uuid
7
+ :type_hint: String
8
+ :description: For PhysicalVolume to PhysicalVolumeSegment relationship.
9
+ - :method: size
10
+ :column: pvseg_size
11
+ :type_hint: Integer
12
+ :description: Number of extents in segment.
13
+ - :method: start
14
+ :column: pvseg_start
15
+ :type_hint: Integer
16
+ :description: Physical Extent number of start of segment.
@@ -0,0 +1,92 @@
1
+ # These are column to object attribute mappings
2
+ # generated by ../../../bin/generate_field_data based on
3
+ # /home/ec2-user/lvm2-2_02_95/lib/report/columns.h
4
+ ---
5
+ - :method: lv_count
6
+ :column: lv_count
7
+ :type_hint: Integer
8
+ :description: Number of LVs.
9
+ - :method: max_lv
10
+ :column: max_lv
11
+ :type_hint: Integer
12
+ :description: Maximum number of LVs allowed in VG or 0 if unlimited.
13
+ - :method: max_pv
14
+ :column: max_pv
15
+ :type_hint: Integer
16
+ :description: Maximum number of PVs allowed in VG or 0 if unlimited.
17
+ - :method: pv_count
18
+ :column: pv_count
19
+ :type_hint: Integer
20
+ :description: Number of PVs.
21
+ - :method: snap_count
22
+ :column: snap_count
23
+ :type_hint: Integer
24
+ :description: Number of snapshots.
25
+ - :method: attr
26
+ :column: vg_attr
27
+ :type_hint: String
28
+ :description: Various attributes - see man page.
29
+ - :method: extent_count
30
+ :column: vg_extent_count
31
+ :type_hint: Integer
32
+ :description: Total number of Physical Extents.
33
+ - :method: extent_size
34
+ :column: vg_extent_size
35
+ :type_hint: Integer
36
+ :description: Size of Physical Extents in current units.
37
+ - :method: fmt
38
+ :column: vg_fmt
39
+ :type_hint: String
40
+ :description: Type of metadata.
41
+ - :method: free
42
+ :column: vg_free
43
+ :type_hint: Integer
44
+ :description: Total amount of free space in current units.
45
+ - :method: free_count
46
+ :column: vg_free_count
47
+ :type_hint: Integer
48
+ :description: Total number of unallocated Physical Extents.
49
+ - :method: mda_copies
50
+ :column: vg_mda_copies
51
+ :type_hint: Integer
52
+ :description: Target number of in use metadata areas in the VG.
53
+ - :method: mda_count
54
+ :column: vg_mda_count
55
+ :type_hint: Integer
56
+ :description: Number of metadata areas on this VG.
57
+ - :method: mda_free
58
+ :column: vg_mda_free
59
+ :type_hint: Integer
60
+ :description: Free metadata area space for this VG in current units.
61
+ - :method: mda_size
62
+ :column: vg_mda_size
63
+ :type_hint: Integer
64
+ :description: Size of smallest metadata area for this VG in current units.
65
+ - :method: mda_used_count
66
+ :column: vg_mda_used_count
67
+ :type_hint: Integer
68
+ :description: Number of metadata areas in use on this VG.
69
+ - :method: name
70
+ :column: vg_name
71
+ :type_hint: String
72
+ :description: Name.
73
+ - :method: seqno
74
+ :column: vg_seqno
75
+ :type_hint: Integer
76
+ :description: Revision number of internal metadata. Incremented whenever it changes.
77
+ - :method: size
78
+ :column: vg_size
79
+ :type_hint: Integer
80
+ :description: Total size of VG in current units.
81
+ - :method: sysid
82
+ :column: vg_sysid
83
+ :type_hint: String
84
+ :description: System ID indicating when and where it was created.
85
+ - :method: tags
86
+ :column: vg_tags
87
+ :type_hint: String
88
+ :description: Tags
89
+ - :method: uuid
90
+ :column: vg_uuid
91
+ :type_hint: String
92
+ :description: Unique identifier.
@@ -2,7 +2,7 @@ require 'yaml'
2
2
 
3
3
  module LVM
4
4
  module Attributes
5
- VERSION = '0.0.3'
5
+ VERSION = '0.0.4'
6
6
 
7
7
  def load(version, name)
8
8
  cwd = File.dirname(__FILE__)
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.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-06-05 00:00:00.000000000 Z
13
+ date: 2013-02-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdoc
@@ -35,7 +35,7 @@ dependencies:
35
35
  requirements:
36
36
  - - ~>
37
37
  - !ruby/object:Gem::Version
38
- version: '3.0'
38
+ version: '3.5'
39
39
  type: :development
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ~>
45
45
  - !ruby/object:Gem::Version
46
- version: '3.0'
46
+ version: '3.5'
47
47
  description: ! "This is a list of attributes for lvm objects. They are generated from
48
48
  the \nsource code and broken down by version.\n\nAt their core these files exist
49
49
  to determine which arguments to pass\nlvs/vgs/pvs and the subsequent type conversions.\n\nCurrently
@@ -89,6 +89,11 @@ files:
89
89
  - lib/lvm/attributes/2.02.30/vgs.yaml
90
90
  - lib/lvm/attributes/2.02.30/lvs.yaml
91
91
  - lib/lvm/attributes/2.02.30/pvsseg.yaml
92
+ - lib/lvm/attributes/2.02.95(2)/lvs.yaml
93
+ - lib/lvm/attributes/2.02.95(2)/lvsseg.yaml
94
+ - lib/lvm/attributes/2.02.95(2)/pvs.yaml
95
+ - lib/lvm/attributes/2.02.95(2)/pvsseg.yaml
96
+ - lib/lvm/attributes/2.02.95(2)/vgs.yaml
92
97
  - Manifest.txt
93
98
  - Rakefile
94
99
  - README.txt