di-ruby-lvm-attrib 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ pkg
2
+ doc
@@ -1,39 +1,37 @@
1
- = ruby-lvm-attrib
1
+ # ruby-lvm-attrib
2
2
 
3
- * http://ruby-lvm-attrib.rubyforge.org
4
- * mailto:mkent@magoazul.com
5
-
6
- == DESCRIPTION:
3
+ ## DESCRIPTION:
7
4
 
8
5
  This is a list of attributes for lvm objects. They are generated from the
9
6
  source code and broken down by version. See ADDING ATTRIBUTES below
10
7
  to contribute.
11
8
 
12
9
  At their core these files exist to determine which arguments to pass
13
- lvs/vgs/pvs and the subsequent type conversions.
14
-
10
+ lvs/vgs/pvs and the subsequent type conversions.
15
11
  Currently this is split from the main ruby-lvm gem since these files require
16
12
  updating to follow LVM2 releases.
17
13
 
18
- == FEATURES/PROBLEMS:
14
+ ## FEATURES/PROBLEMS:
19
15
 
20
16
  * This library may go away depending on future progress of ruby-lvm.
21
17
 
22
- == SYNOPSIS:
18
+ ## SYNOPSIS:
23
19
 
20
+ ```ruby
24
21
  require 'lvm/attributes'
25
22
 
26
23
  attributes = Attributes.load("2.0.36", "vgs.yaml")
24
+ ```
27
25
 
28
- == REQUIREMENTS:
26
+ ## REQUIREMENTS:
29
27
 
30
28
  * None
31
29
 
32
- == INSTALL:
30
+ ## INSTALL:
33
31
 
34
- * sudo gem install ruby-lvm-attrib
32
+ * `sudo gem install ruby-lvm-attrib`
35
33
 
36
- == ADDING ATTRIBUTES:
34
+ ## ADDING ATTRIBUTES:
37
35
 
38
36
  To add attributes:
39
37
  * Download and extract LVM2 source version from: http://git.fedorahosted.org/cgit/lvm2.git/refs/tags
@@ -46,12 +44,13 @@ To add attributes:
46
44
  * `mv LVM_VERSION_FULL lib/lvm/attributes/LVM_VERSION`
47
45
  * LVM_VERSION_FULL being something like 2.02.86(2)-cvs or 2.02.98(2)-git
48
46
  * LVM_VERSION being something like 2.02.86(2) or 2.02.98(2)
47
+ * Add the newly generated files to Manifest.txt
49
48
  * `git commit -am "Added LVM_VERSION attributes"`
50
49
  * `git push origin mybranch`
51
- * Submit PR to this repository. Please make sure to point your pull at the
52
- `next` branch -- NOT MASTER!
50
+ * Submit PR to this repository. **Please make sure to point your pull at the
51
+ `next` branch -- NOT MASTER!**
53
52
 
54
- === MISSING ATTRIBUTE TYPE:
53
+ ### MISSING ATTRIBUTE TYPE:
55
54
 
56
55
  If you get an error like the below:
57
56
 
@@ -62,12 +61,12 @@ If you get an error like the below:
62
61
  * If the 3rd field is NUM, type will be Integer. If 3rd field is STR, type will be String.
63
62
  * Add the information to `bin/generate_field_data` in the TYPE_CONVERSION_MAP and try running again
64
63
 
65
- == FEEDBACK:
64
+ ## FEEDBACK:
66
65
 
67
66
  Please feel free to submit patches or constructive criticism, I'm still pretty
68
67
  new to ruby and object oriented programming in general.
69
68
 
70
- == LICENSE:
69
+ ## LICENSE:
71
70
 
72
71
  (The MIT License)
73
72
 
@@ -0,0 +1,15 @@
1
+ $:.unshift(File.dirname(__FILE__) + '/lib')
2
+ Gem::Specification.new do |gem|
3
+ gem.authors = ["Greg Symons", "Matthew Kent"]
4
+ gem.email = ["mkent@magoazul.com", 'gsymons@drillinginfo.com']
5
+ gem.description = %q{A list of attributes for LVM objects}
6
+ gem.summary = %q{A list of attributes for LVM objects}
7
+ gem.homepage = "https://github.com/DrillingInfo/di-ruby-lvm-attrib"
8
+ gem.executables = [ 'generate_field_data' ]
9
+
10
+ gem.files = `git ls-files`.split($\)
11
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
+ gem.name = "di-ruby-lvm-attrib"
13
+ gem.require_paths = ["lib"]
14
+ gem.version = '0.0.10'
15
+ end
@@ -0,0 +1,91 @@
1
+ # These are column to object attribute mappings
2
+ # generated by bin/generate_field_data based on
3
+ ---
4
+ - :method: convert_lv
5
+ :column: convert_lv
6
+ :type_hint: String
7
+ :description: For lvconvert
8
+ - :method: copy_percent
9
+ :column: copy_percent
10
+ :type_hint: Float
11
+ :description: For mirrors and pvmove
12
+ - :method: attr
13
+ :column: lv_attr
14
+ :type_hint: String
15
+ :description: Various attributes - see man page.
16
+ - :method: kernel_major
17
+ :column: lv_kernel_major
18
+ :type_hint: String
19
+ :description: Currently assigned major number or -1 if LV is not active.
20
+ - :method: kernel_minor
21
+ :column: lv_kernel_minor
22
+ :type_hint: String
23
+ :description: Currently assigned minor number or -1 if LV is not active.
24
+ - :method: kernel_read_ahead
25
+ :column: lv_kernel_read_ahead
26
+ :type_hint: Integer
27
+ :description: Currently-in-use read ahead setting in current units.
28
+ - :method: major
29
+ :column: lv_major
30
+ :type_hint: Integer
31
+ :description: Persistent major number or -1 if not persistent.
32
+ - :method: minor
33
+ :column: lv_minor
34
+ :type_hint: Integer
35
+ :description: Persistent minor number or -1 if not persistent.
36
+ - :method: name
37
+ :column: lv_name
38
+ :type_hint: String
39
+ :description: Name. LVs created for internal use are enclosed in brackets.
40
+ - :method: path
41
+ :column: lv_path
42
+ :type_hint: String
43
+ :description: Full pathname for LV.
44
+ - :method: read_ahead
45
+ :column: lv_read_ahead
46
+ :type_hint: String
47
+ :description: Read ahead setting in current units.
48
+ - :method: size
49
+ :column: lv_size
50
+ :type_hint: Integer
51
+ :description: Size of LV in current units.
52
+ - :method: tags
53
+ :column: lv_tags
54
+ :type_hint: String
55
+ :description: Tags
56
+ - :method: uuid
57
+ :column: lv_uuid
58
+ :type_hint: String
59
+ :description: Unique identifier.
60
+ - :method: mirror_log
61
+ :column: mirror_log
62
+ :type_hint: String
63
+ :description: For mirrors
64
+ - :method: modules
65
+ :column: modules
66
+ :type_hint: String
67
+ :description: Kernel device-mapper modules required for this LV.
68
+ - :method: move_pv
69
+ :column: move_pv
70
+ :type_hint: String
71
+ :description: For pvmove
72
+ - :method: origin
73
+ :column: origin
74
+ :type_hint: String
75
+ :description: For snapshots
76
+ - :method: origin_size
77
+ :column: origin_size
78
+ :type_hint: Integer
79
+ :description: For snapshots
80
+ - :method: seg_count
81
+ :column: seg_count
82
+ :type_hint: Integer
83
+ :description: Number of segments in LV.
84
+ - :method: snap_percent
85
+ :column: snap_percent
86
+ :type_hint: Float
87
+ :description: For snapshots
88
+ - :method: vg_uuid
89
+ :column: vg_uuid
90
+ :type_hint: String
91
+ :description: For VolumeGroup to LogicalVolume relationship.
@@ -0,0 +1,63 @@
1
+ # These are column to object attribute mappings
2
+ # generated by bin/generate_field_data based on
3
+ ---
4
+ - :method: chunk_size
5
+ :column: chunk_size
6
+ :type_hint: Integer
7
+ :description: For snapshots
8
+ - :method: chunksize
9
+ :column: chunksize
10
+ :type_hint: Integer
11
+ :description: For snapshots
12
+ - :method: devices
13
+ :column: devices
14
+ :type_hint: String
15
+ :description: Underlying devices used with starting extent numbers.
16
+ - :method: lv_uuid
17
+ :column: lv_uuid
18
+ :type_hint: String
19
+ :description: For LogicalVolume to LogicalVolumeSegment relationship.
20
+ - :method: region_size
21
+ :column: region_size
22
+ :type_hint: Integer
23
+ :description: For mirrors
24
+ - :method: regionsize
25
+ :column: regionsize
26
+ :type_hint: Integer
27
+ :description: For mirrors
28
+ - :method: pe_ranges
29
+ :column: seg_pe_ranges
30
+ :type_hint: String
31
+ :description: Ranges of Physical Extents of underlying devices in command line format.
32
+ - :method: size
33
+ :column: seg_size
34
+ :type_hint: Integer
35
+ :description: Size of segment in current units.
36
+ - :method: start
37
+ :column: seg_start
38
+ :type_hint: Integer
39
+ :description: Offset within the LV to the start of the segment in current units.
40
+ - :method: start_pe
41
+ :column: seg_start_pe
42
+ :type_hint: Integer
43
+ :description: Offset within the LV to the start of the segment in physical extents.
44
+ - :method: tags
45
+ :column: seg_tags
46
+ :type_hint: String
47
+ :description: Tags
48
+ - :method: segtype
49
+ :column: segtype
50
+ :type_hint: String
51
+ :description: Type of LV segment.
52
+ - :method: stripe_size
53
+ :column: stripe_size
54
+ :type_hint: Integer
55
+ :description: For stripes
56
+ - :method: stripes
57
+ :column: stripes
58
+ :type_hint: Integer
59
+ :description: Number of stripes or mirror legs.
60
+ - :method: stripesize
61
+ :column: stripesize
62
+ :type_hint: Integer
63
+ :description: For stripes
@@ -0,0 +1,71 @@
1
+ # These are column to object attribute mappings
2
+ # generated by bin/generate_field_data based on
3
+ ---
4
+ - :method: dev_size
5
+ :column: dev_size
6
+ :type_hint: Integer
7
+ :description: Size of underlying device in current units.
8
+ - :method: pe_start
9
+ :column: pe_start
10
+ :type_hint: Integer
11
+ :description: Offset to the start of data on the underlying device.
12
+ - :method: attr
13
+ :column: pv_attr
14
+ :type_hint: String
15
+ :description: Various attributes - see man page.
16
+ - :method: fmt
17
+ :column: pv_fmt
18
+ :type_hint: String
19
+ :description: Type of metadata.
20
+ - :method: free
21
+ :column: pv_free
22
+ :type_hint: Integer
23
+ :description: Total amount of unallocated space in current units.
24
+ - :method: mda_count
25
+ :column: pv_mda_count
26
+ :type_hint: Integer
27
+ :description: Number of metadata areas on this device.
28
+ - :method: mda_free
29
+ :column: pv_mda_free
30
+ :type_hint: Integer
31
+ :description: Free metadata area space on this device in current units.
32
+ - :method: mda_size
33
+ :column: pv_mda_size
34
+ :type_hint: Integer
35
+ :description: Size of smallest metadata area on this device in current units.
36
+ - :method: mda_used_count
37
+ :column: pv_mda_used_count
38
+ :type_hint: Integer
39
+ :description: Number of metadata areas in use on this device.
40
+ - :method: name
41
+ :column: pv_name
42
+ :type_hint: String
43
+ :description: Name.
44
+ - :method: pe_alloc_count
45
+ :column: pv_pe_alloc_count
46
+ :type_hint: Integer
47
+ :description: Total number of allocated Physical Extents.
48
+ - :method: pe_count
49
+ :column: pv_pe_count
50
+ :type_hint: Integer
51
+ :description: Total number of Physical Extents.
52
+ - :method: size
53
+ :column: pv_size
54
+ :type_hint: Integer
55
+ :description: Size of PV in current units.
56
+ - :method: tags
57
+ :column: pv_tags
58
+ :type_hint: String
59
+ :description: Tags
60
+ - :method: used
61
+ :column: pv_used
62
+ :type_hint: Integer
63
+ :description: Total amount of allocated space in current units.
64
+ - :method: uuid
65
+ :column: pv_uuid
66
+ :type_hint: String
67
+ :description: Unique identifier.
68
+ - :method: vg_uuid
69
+ :column: vg_uuid
70
+ :type_hint: String
71
+ :description: For VolumeGroup to PhysicalVolume relationship.
@@ -0,0 +1,15 @@
1
+ # These are column to object attribute mappings
2
+ # generated by bin/generate_field_data based on
3
+ ---
4
+ - :method: pv_uuid
5
+ :column: pv_uuid
6
+ :type_hint: String
7
+ :description: For PhysicalVolume to PhysicalVolumeSegment relationship.
8
+ - :method: size
9
+ :column: pvseg_size
10
+ :type_hint: Integer
11
+ :description: Number of extents in segment.
12
+ - :method: start
13
+ :column: pvseg_start
14
+ :type_hint: Integer
15
+ :description: Physical Extent number of start of segment.
@@ -0,0 +1,91 @@
1
+ # These are column to object attribute mappings
2
+ # generated by bin/generate_field_data based on
3
+ ---
4
+ - :method: lv_count
5
+ :column: lv_count
6
+ :type_hint: Integer
7
+ :description: Number of LVs.
8
+ - :method: max_lv
9
+ :column: max_lv
10
+ :type_hint: Integer
11
+ :description: Maximum number of LVs allowed in VG or 0 if unlimited.
12
+ - :method: max_pv
13
+ :column: max_pv
14
+ :type_hint: Integer
15
+ :description: Maximum number of PVs allowed in VG or 0 if unlimited.
16
+ - :method: pv_count
17
+ :column: pv_count
18
+ :type_hint: Integer
19
+ :description: Number of PVs.
20
+ - :method: snap_count
21
+ :column: snap_count
22
+ :type_hint: Integer
23
+ :description: Number of snapshots.
24
+ - :method: attr
25
+ :column: vg_attr
26
+ :type_hint: String
27
+ :description: Various attributes - see man page.
28
+ - :method: extent_count
29
+ :column: vg_extent_count
30
+ :type_hint: Integer
31
+ :description: Total number of Physical Extents.
32
+ - :method: extent_size
33
+ :column: vg_extent_size
34
+ :type_hint: Integer
35
+ :description: Size of Physical Extents in current units.
36
+ - :method: fmt
37
+ :column: vg_fmt
38
+ :type_hint: String
39
+ :description: Type of metadata.
40
+ - :method: free
41
+ :column: vg_free
42
+ :type_hint: Integer
43
+ :description: Total amount of free space in current units.
44
+ - :method: free_count
45
+ :column: vg_free_count
46
+ :type_hint: Integer
47
+ :description: Total number of unallocated Physical Extents.
48
+ - :method: mda_copies
49
+ :column: vg_mda_copies
50
+ :type_hint: Integer
51
+ :description: Target number of in use metadata areas in the VG.
52
+ - :method: mda_count
53
+ :column: vg_mda_count
54
+ :type_hint: Integer
55
+ :description: Number of metadata areas on this VG.
56
+ - :method: mda_free
57
+ :column: vg_mda_free
58
+ :type_hint: Integer
59
+ :description: Free metadata area space for this VG in current units.
60
+ - :method: mda_size
61
+ :column: vg_mda_size
62
+ :type_hint: Integer
63
+ :description: Size of smallest metadata area for this VG in current units.
64
+ - :method: mda_used_count
65
+ :column: vg_mda_used_count
66
+ :type_hint: Integer
67
+ :description: Number of metadata areas in use on this VG.
68
+ - :method: name
69
+ :column: vg_name
70
+ :type_hint: String
71
+ :description: Name.
72
+ - :method: seqno
73
+ :column: vg_seqno
74
+ :type_hint: Integer
75
+ :description: Revision number of internal metadata. Incremented whenever it changes.
76
+ - :method: size
77
+ :column: vg_size
78
+ :type_hint: Integer
79
+ :description: Total size of VG in current units.
80
+ - :method: sysid
81
+ :column: vg_sysid
82
+ :type_hint: String
83
+ :description: System ID indicating when and where it was created.
84
+ - :method: tags
85
+ :column: vg_tags
86
+ :type_hint: String
87
+ :description: Tags
88
+ - :method: uuid
89
+ :column: vg_uuid
90
+ :type_hint: String
91
+ :description: Unique identifier.
@@ -0,0 +1,91 @@
1
+ # These are column to object attribute mappings
2
+ # generated by bin/generate_field_data based on
3
+ ---
4
+ - :method: convert_lv
5
+ :column: convert_lv
6
+ :type_hint: String
7
+ :description: For lvconvert
8
+ - :method: copy_percent
9
+ :column: copy_percent
10
+ :type_hint: Float
11
+ :description: For mirrors and pvmove
12
+ - :method: attr
13
+ :column: lv_attr
14
+ :type_hint: String
15
+ :description: Various attributes - see man page.
16
+ - :method: kernel_major
17
+ :column: lv_kernel_major
18
+ :type_hint: String
19
+ :description: Currently assigned major number or -1 if LV is not active.
20
+ - :method: kernel_minor
21
+ :column: lv_kernel_minor
22
+ :type_hint: String
23
+ :description: Currently assigned minor number or -1 if LV is not active.
24
+ - :method: kernel_read_ahead
25
+ :column: lv_kernel_read_ahead
26
+ :type_hint: Integer
27
+ :description: Currently-in-use read ahead setting in current units.
28
+ - :method: major
29
+ :column: lv_major
30
+ :type_hint: Integer
31
+ :description: Persistent major number or -1 if not persistent.
32
+ - :method: minor
33
+ :column: lv_minor
34
+ :type_hint: Integer
35
+ :description: Persistent minor number or -1 if not persistent.
36
+ - :method: name
37
+ :column: lv_name
38
+ :type_hint: String
39
+ :description: Name. LVs created for internal use are enclosed in brackets.
40
+ - :method: path
41
+ :column: lv_path
42
+ :type_hint: String
43
+ :description: Full pathname for LV.
44
+ - :method: read_ahead
45
+ :column: lv_read_ahead
46
+ :type_hint: String
47
+ :description: Read ahead setting in current units.
48
+ - :method: size
49
+ :column: lv_size
50
+ :type_hint: Integer
51
+ :description: Size of LV in current units.
52
+ - :method: tags
53
+ :column: lv_tags
54
+ :type_hint: String
55
+ :description: Tags
56
+ - :method: uuid
57
+ :column: lv_uuid
58
+ :type_hint: String
59
+ :description: Unique identifier.
60
+ - :method: mirror_log
61
+ :column: mirror_log
62
+ :type_hint: String
63
+ :description: For mirrors
64
+ - :method: modules
65
+ :column: modules
66
+ :type_hint: String
67
+ :description: Kernel device-mapper modules required for this LV.
68
+ - :method: move_pv
69
+ :column: move_pv
70
+ :type_hint: String
71
+ :description: For pvmove
72
+ - :method: origin
73
+ :column: origin
74
+ :type_hint: String
75
+ :description: For snapshots
76
+ - :method: origin_size
77
+ :column: origin_size
78
+ :type_hint: Integer
79
+ :description: For snapshots
80
+ - :method: seg_count
81
+ :column: seg_count
82
+ :type_hint: Integer
83
+ :description: Number of segments in LV.
84
+ - :method: snap_percent
85
+ :column: snap_percent
86
+ :type_hint: Float
87
+ :description: For snapshots
88
+ - :method: vg_uuid
89
+ :column: vg_uuid
90
+ :type_hint: String
91
+ :description: For VolumeGroup to LogicalVolume relationship.
@@ -0,0 +1,63 @@
1
+ # These are column to object attribute mappings
2
+ # generated by bin/generate_field_data based on
3
+ ---
4
+ - :method: chunk_size
5
+ :column: chunk_size
6
+ :type_hint: Integer
7
+ :description: For snapshots
8
+ - :method: chunksize
9
+ :column: chunksize
10
+ :type_hint: Integer
11
+ :description: For snapshots
12
+ - :method: devices
13
+ :column: devices
14
+ :type_hint: String
15
+ :description: Underlying devices used with starting extent numbers.
16
+ - :method: lv_uuid
17
+ :column: lv_uuid
18
+ :type_hint: String
19
+ :description: For LogicalVolume to LogicalVolumeSegment relationship.
20
+ - :method: region_size
21
+ :column: region_size
22
+ :type_hint: Integer
23
+ :description: For mirrors
24
+ - :method: regionsize
25
+ :column: regionsize
26
+ :type_hint: Integer
27
+ :description: For mirrors
28
+ - :method: pe_ranges
29
+ :column: seg_pe_ranges
30
+ :type_hint: String
31
+ :description: Ranges of Physical Extents of underlying devices in command line format.
32
+ - :method: size
33
+ :column: seg_size
34
+ :type_hint: Integer
35
+ :description: Size of segment in current units.
36
+ - :method: start
37
+ :column: seg_start
38
+ :type_hint: Integer
39
+ :description: Offset within the LV to the start of the segment in current units.
40
+ - :method: start_pe
41
+ :column: seg_start_pe
42
+ :type_hint: Integer
43
+ :description: Offset within the LV to the start of the segment in physical extents.
44
+ - :method: tags
45
+ :column: seg_tags
46
+ :type_hint: String
47
+ :description: Tags
48
+ - :method: segtype
49
+ :column: segtype
50
+ :type_hint: String
51
+ :description: Type of LV segment.
52
+ - :method: stripe_size
53
+ :column: stripe_size
54
+ :type_hint: Integer
55
+ :description: For stripes
56
+ - :method: stripes
57
+ :column: stripes
58
+ :type_hint: Integer
59
+ :description: Number of stripes or mirror legs.
60
+ - :method: stripesize
61
+ :column: stripesize
62
+ :type_hint: Integer
63
+ :description: For stripes
@@ -0,0 +1,71 @@
1
+ # These are column to object attribute mappings
2
+ # generated by bin/generate_field_data based on
3
+ ---
4
+ - :method: dev_size
5
+ :column: dev_size
6
+ :type_hint: Integer
7
+ :description: Size of underlying device in current units.
8
+ - :method: pe_start
9
+ :column: pe_start
10
+ :type_hint: Integer
11
+ :description: Offset to the start of data on the underlying device.
12
+ - :method: attr
13
+ :column: pv_attr
14
+ :type_hint: String
15
+ :description: Various attributes - see man page.
16
+ - :method: fmt
17
+ :column: pv_fmt
18
+ :type_hint: String
19
+ :description: Type of metadata.
20
+ - :method: free
21
+ :column: pv_free
22
+ :type_hint: Integer
23
+ :description: Total amount of unallocated space in current units.
24
+ - :method: mda_count
25
+ :column: pv_mda_count
26
+ :type_hint: Integer
27
+ :description: Number of metadata areas on this device.
28
+ - :method: mda_free
29
+ :column: pv_mda_free
30
+ :type_hint: Integer
31
+ :description: Free metadata area space on this device in current units.
32
+ - :method: mda_size
33
+ :column: pv_mda_size
34
+ :type_hint: Integer
35
+ :description: Size of smallest metadata area on this device in current units.
36
+ - :method: mda_used_count
37
+ :column: pv_mda_used_count
38
+ :type_hint: Integer
39
+ :description: Number of metadata areas in use on this device.
40
+ - :method: name
41
+ :column: pv_name
42
+ :type_hint: String
43
+ :description: Name.
44
+ - :method: pe_alloc_count
45
+ :column: pv_pe_alloc_count
46
+ :type_hint: Integer
47
+ :description: Total number of allocated Physical Extents.
48
+ - :method: pe_count
49
+ :column: pv_pe_count
50
+ :type_hint: Integer
51
+ :description: Total number of Physical Extents.
52
+ - :method: size
53
+ :column: pv_size
54
+ :type_hint: Integer
55
+ :description: Size of PV in current units.
56
+ - :method: tags
57
+ :column: pv_tags
58
+ :type_hint: String
59
+ :description: Tags
60
+ - :method: used
61
+ :column: pv_used
62
+ :type_hint: Integer
63
+ :description: Total amount of allocated space in current units.
64
+ - :method: uuid
65
+ :column: pv_uuid
66
+ :type_hint: String
67
+ :description: Unique identifier.
68
+ - :method: vg_uuid
69
+ :column: vg_uuid
70
+ :type_hint: String
71
+ :description: For VolumeGroup to PhysicalVolume relationship.
@@ -0,0 +1,15 @@
1
+ # These are column to object attribute mappings
2
+ # generated by bin/generate_field_data based on
3
+ ---
4
+ - :method: pv_uuid
5
+ :column: pv_uuid
6
+ :type_hint: String
7
+ :description: For PhysicalVolume to PhysicalVolumeSegment relationship.
8
+ - :method: size
9
+ :column: pvseg_size
10
+ :type_hint: Integer
11
+ :description: Number of extents in segment.
12
+ - :method: start
13
+ :column: pvseg_start
14
+ :type_hint: Integer
15
+ :description: Physical Extent number of start of segment.
@@ -0,0 +1,91 @@
1
+ # These are column to object attribute mappings
2
+ # generated by bin/generate_field_data based on
3
+ ---
4
+ - :method: lv_count
5
+ :column: lv_count
6
+ :type_hint: Integer
7
+ :description: Number of LVs.
8
+ - :method: max_lv
9
+ :column: max_lv
10
+ :type_hint: Integer
11
+ :description: Maximum number of LVs allowed in VG or 0 if unlimited.
12
+ - :method: max_pv
13
+ :column: max_pv
14
+ :type_hint: Integer
15
+ :description: Maximum number of PVs allowed in VG or 0 if unlimited.
16
+ - :method: pv_count
17
+ :column: pv_count
18
+ :type_hint: Integer
19
+ :description: Number of PVs.
20
+ - :method: snap_count
21
+ :column: snap_count
22
+ :type_hint: Integer
23
+ :description: Number of snapshots.
24
+ - :method: attr
25
+ :column: vg_attr
26
+ :type_hint: String
27
+ :description: Various attributes - see man page.
28
+ - :method: extent_count
29
+ :column: vg_extent_count
30
+ :type_hint: Integer
31
+ :description: Total number of Physical Extents.
32
+ - :method: extent_size
33
+ :column: vg_extent_size
34
+ :type_hint: Integer
35
+ :description: Size of Physical Extents in current units.
36
+ - :method: fmt
37
+ :column: vg_fmt
38
+ :type_hint: String
39
+ :description: Type of metadata.
40
+ - :method: free
41
+ :column: vg_free
42
+ :type_hint: Integer
43
+ :description: Total amount of free space in current units.
44
+ - :method: free_count
45
+ :column: vg_free_count
46
+ :type_hint: Integer
47
+ :description: Total number of unallocated Physical Extents.
48
+ - :method: mda_copies
49
+ :column: vg_mda_copies
50
+ :type_hint: Integer
51
+ :description: Target number of in use metadata areas in the VG.
52
+ - :method: mda_count
53
+ :column: vg_mda_count
54
+ :type_hint: Integer
55
+ :description: Number of metadata areas on this VG.
56
+ - :method: mda_free
57
+ :column: vg_mda_free
58
+ :type_hint: Integer
59
+ :description: Free metadata area space for this VG in current units.
60
+ - :method: mda_size
61
+ :column: vg_mda_size
62
+ :type_hint: Integer
63
+ :description: Size of smallest metadata area for this VG in current units.
64
+ - :method: mda_used_count
65
+ :column: vg_mda_used_count
66
+ :type_hint: Integer
67
+ :description: Number of metadata areas in use on this VG.
68
+ - :method: name
69
+ :column: vg_name
70
+ :type_hint: String
71
+ :description: Name.
72
+ - :method: seqno
73
+ :column: vg_seqno
74
+ :type_hint: Integer
75
+ :description: Revision number of internal metadata. Incremented whenever it changes.
76
+ - :method: size
77
+ :column: vg_size
78
+ :type_hint: Integer
79
+ :description: Total size of VG in current units.
80
+ - :method: sysid
81
+ :column: vg_sysid
82
+ :type_hint: String
83
+ :description: System ID indicating when and where it was created.
84
+ - :method: tags
85
+ :column: vg_tags
86
+ :type_hint: String
87
+ :description: Tags
88
+ - :method: uuid
89
+ :column: vg_uuid
90
+ :type_hint: String
91
+ :description: Unique identifier.
@@ -2,7 +2,7 @@ require 'yaml'
2
2
 
3
3
  module LVM
4
4
  module Attributes
5
- VERSION = '0.0.9'
5
+ VERSION = '0.0.10'
6
6
 
7
7
  def load(version, name)
8
8
  cwd = File.dirname(__FILE__)
metadata CHANGED
@@ -1,136 +1,103 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: di-ruby-lvm-attrib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Matthew Kent
9
8
  - Greg Symons
9
+ - Matthew Kent
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-04-18 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: rdoc
17
- requirement: !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ~>
21
- - !ruby/object:Gem::Version
22
- version: '4.0'
23
- type: :development
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ~>
29
- - !ruby/object:Gem::Version
30
- version: '4.0'
31
- - !ruby/object:Gem::Dependency
32
- name: hoe
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ~>
37
- - !ruby/object:Gem::Version
38
- version: '3.5'
39
- type: :development
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ~>
45
- - !ruby/object:Gem::Version
46
- version: '3.5'
47
- description: ! "This is a list of attributes for lvm objects. They are generated from
48
- the \nsource code and broken down by version. See ADDING ATTRIBUTES below\nto contribute.\n\nAt
49
- their core these files exist to determine which arguments to pass\nlvs/vgs/pvs and
50
- the subsequent type conversions.\n\nCurrently this is split from the main ruby-lvm
51
- gem since these files require\nupdating to follow LVM2 releases."
13
+ date: 2013-06-18 00:00:00.000000000 Z
14
+ dependencies: []
15
+ description: A list of attributes for LVM objects
52
16
  email:
53
17
  - mkent@magoazul.com
54
18
  - gsymons@drillinginfo.com
55
19
  executables:
56
20
  - generate_field_data
57
21
  extensions: []
58
- extra_rdoc_files:
22
+ extra_rdoc_files: []
23
+ files:
24
+ - .gitignore
59
25
  - History.txt
60
- - Manifest.txt
61
- - README.txt
26
+ - README.md
62
27
  - Todo.txt
63
- files:
64
28
  - bin/generate_field_data
65
- - History.txt
29
+ - di-ruby-lvm-attrib.gemspec
66
30
  - lib/lvm/attributes.rb
67
- - lib/lvm/attributes/2.02.88(2)/pvs.yaml
68
- - lib/lvm/attributes/2.02.88(2)/lvsseg.yaml
69
- - lib/lvm/attributes/2.02.88(2)/vgs.yaml
70
- - lib/lvm/attributes/2.02.88(2)/lvs.yaml
71
- - lib/lvm/attributes/2.02.88(2)/pvsseg.yaml
72
- - lib/lvm/attributes/2.02.27/pvs.yaml
73
- - lib/lvm/attributes/2.02.27/lvsseg.yaml
74
- - lib/lvm/attributes/2.02.27/vgs.yaml
75
- - lib/lvm/attributes/2.02.27/lvs.yaml
76
- - lib/lvm/attributes/2.02.27/pvsseg.yaml
77
- - lib/lvm/attributes/2.02.26/pvs.yaml
78
- - lib/lvm/attributes/2.02.26/lvsseg.yaml
79
- - lib/lvm/attributes/2.02.26/vgs.yaml
80
31
  - lib/lvm/attributes/2.02.26/lvs.yaml
32
+ - lib/lvm/attributes/2.02.26/lvsseg.yaml
33
+ - lib/lvm/attributes/2.02.26/pvs.yaml
81
34
  - lib/lvm/attributes/2.02.26/pvsseg.yaml
82
- - lib/lvm/attributes/2.02.29/pvs.yaml
83
- - lib/lvm/attributes/2.02.29/lvsseg.yaml
84
- - lib/lvm/attributes/2.02.29/vgs.yaml
35
+ - lib/lvm/attributes/2.02.26/vgs.yaml
36
+ - lib/lvm/attributes/2.02.27/lvs.yaml
37
+ - lib/lvm/attributes/2.02.27/lvsseg.yaml
38
+ - lib/lvm/attributes/2.02.27/pvs.yaml
39
+ - lib/lvm/attributes/2.02.27/pvsseg.yaml
40
+ - lib/lvm/attributes/2.02.27/vgs.yaml
85
41
  - lib/lvm/attributes/2.02.29/lvs.yaml
42
+ - lib/lvm/attributes/2.02.29/lvsseg.yaml
43
+ - lib/lvm/attributes/2.02.29/pvs.yaml
86
44
  - lib/lvm/attributes/2.02.29/pvsseg.yaml
87
- - lib/lvm/attributes/2.02.66(2)/pvs.yaml
88
- - lib/lvm/attributes/2.02.66(2)/lvsseg.yaml
89
- - lib/lvm/attributes/2.02.66(2)/vgs.yaml
45
+ - lib/lvm/attributes/2.02.29/vgs.yaml
46
+ - lib/lvm/attributes/2.02.30/lvs.yaml
47
+ - lib/lvm/attributes/2.02.30/lvsseg.yaml
48
+ - lib/lvm/attributes/2.02.30/pvs.yaml
49
+ - lib/lvm/attributes/2.02.30/pvsseg.yaml
50
+ - lib/lvm/attributes/2.02.30/vgs.yaml
51
+ - lib/lvm/attributes/2.02.54(1)/lvs.yaml
52
+ - lib/lvm/attributes/2.02.54(1)/lvsseg.yaml
53
+ - lib/lvm/attributes/2.02.54(1)/pvs.yaml
54
+ - lib/lvm/attributes/2.02.54(1)/pvsseg.yaml
55
+ - lib/lvm/attributes/2.02.54(1)/vgs.yaml
90
56
  - lib/lvm/attributes/2.02.66(2)/lvs.yaml
57
+ - lib/lvm/attributes/2.02.66(2)/lvsseg.yaml
58
+ - lib/lvm/attributes/2.02.66(2)/pvs.yaml
91
59
  - lib/lvm/attributes/2.02.66(2)/pvsseg.yaml
92
- - lib/lvm/attributes/2.02.86(2)/pvs.yaml
93
- - lib/lvm/attributes/2.02.86(2)/lvsseg.yaml
94
- - lib/lvm/attributes/2.02.86(2)/vgs.yaml
60
+ - lib/lvm/attributes/2.02.66(2)/vgs.yaml
61
+ - lib/lvm/attributes/2.02.74(2)/lvs.yaml
62
+ - lib/lvm/attributes/2.02.74(2)/lvsseg.yaml
63
+ - lib/lvm/attributes/2.02.74(2)/pvs.yaml
64
+ - lib/lvm/attributes/2.02.74(2)/pvsseg.yaml
65
+ - lib/lvm/attributes/2.02.74(2)/vgs.yaml
66
+ - lib/lvm/attributes/2.02.84(2)/lvs.yaml
67
+ - lib/lvm/attributes/2.02.84(2)/lvsseg.yaml
68
+ - lib/lvm/attributes/2.02.84(2)/pvs.yaml
69
+ - lib/lvm/attributes/2.02.84(2)/pvsseg.yaml
70
+ - lib/lvm/attributes/2.02.84(2)/vgs.yaml
95
71
  - lib/lvm/attributes/2.02.86(2)/lvs.yaml
72
+ - lib/lvm/attributes/2.02.86(2)/lvsseg.yaml
73
+ - lib/lvm/attributes/2.02.86(2)/pvs.yaml
96
74
  - lib/lvm/attributes/2.02.86(2)/pvsseg.yaml
97
- - lib/lvm/attributes/2.02.30/pvs.yaml
98
- - lib/lvm/attributes/2.02.30/lvsseg.yaml
99
- - lib/lvm/attributes/2.02.30/vgs.yaml
100
- - lib/lvm/attributes/2.02.30/lvs.yaml
101
- - lib/lvm/attributes/2.02.30/pvsseg.yaml
102
- - lib/lvm/attributes/2.02.98(2)/pvs.yaml
103
- - lib/lvm/attributes/2.02.98(2)/lvsseg.yaml
104
- - lib/lvm/attributes/2.02.98(2)/vgs.yaml
105
- - lib/lvm/attributes/2.02.98(2)/lvs.yaml
106
- - lib/lvm/attributes/2.02.98(2)/pvsseg.yaml
107
- - lib/lvm/attributes/2.02.95(2)/pvs.yaml
108
- - lib/lvm/attributes/2.02.95(2)/lvsseg.yaml
109
- - lib/lvm/attributes/2.02.95(2)/vgs.yaml
75
+ - lib/lvm/attributes/2.02.86(2)/vgs.yaml
76
+ - lib/lvm/attributes/2.02.87(2)/lvs.yaml
77
+ - lib/lvm/attributes/2.02.87(2)/lvsseg.yaml
78
+ - lib/lvm/attributes/2.02.87(2)/pvs.yaml
79
+ - lib/lvm/attributes/2.02.87(2)/pvsseg.yaml
80
+ - lib/lvm/attributes/2.02.87(2)/vgs.yaml
81
+ - lib/lvm/attributes/2.02.88(2)/lvs.yaml
82
+ - lib/lvm/attributes/2.02.88(2)/lvsseg.yaml
83
+ - lib/lvm/attributes/2.02.88(2)/pvs.yaml
84
+ - lib/lvm/attributes/2.02.88(2)/pvsseg.yaml
85
+ - lib/lvm/attributes/2.02.88(2)/vgs.yaml
110
86
  - lib/lvm/attributes/2.02.95(2)/lvs.yaml
87
+ - lib/lvm/attributes/2.02.95(2)/lvsseg.yaml
88
+ - lib/lvm/attributes/2.02.95(2)/pvs.yaml
111
89
  - lib/lvm/attributes/2.02.95(2)/pvsseg.yaml
112
- - lib/lvm/attributes/2.02.84(2)/pvs.yaml
113
- - lib/lvm/attributes/2.02.84(2)/lvsseg.yaml
114
- - lib/lvm/attributes/2.02.84(2)/vgs.yaml
115
- - lib/lvm/attributes/2.02.84(2)/lvs.yaml
116
- - lib/lvm/attributes/2.02.84(2)/pvsseg.yaml
117
- - lib/lvm/attributes/2.02.54(1)/pvs.yaml
118
- - lib/lvm/attributes/2.02.54(1)/lvsseg.yaml
119
- - lib/lvm/attributes/2.02.54(1)/vgs.yaml
120
- - lib/lvm/attributes/2.02.54(1)/lvs.yaml
121
- - lib/lvm/attributes/2.02.54(1)/pvsseg.yaml
122
- - Manifest.txt
123
- - Rakefile
124
- - README.txt
90
+ - lib/lvm/attributes/2.02.95(2)/vgs.yaml
91
+ - lib/lvm/attributes/2.02.98(2)/lvs.yaml
92
+ - lib/lvm/attributes/2.02.98(2)/lvsseg.yaml
93
+ - lib/lvm/attributes/2.02.98(2)/pvs.yaml
94
+ - lib/lvm/attributes/2.02.98(2)/pvsseg.yaml
95
+ - lib/lvm/attributes/2.02.98(2)/vgs.yaml
125
96
  - test/test_ruby-lvm-attributes.rb
126
- - Todo.txt
127
- - .gemtest
128
- homepage: http://ruby-lvm-attrib.rubyforge.org
97
+ homepage: https://github.com/DrillingInfo/di-ruby-lvm-attrib
129
98
  licenses: []
130
99
  post_install_message:
131
- rdoc_options:
132
- - --main
133
- - README.txt
100
+ rdoc_options: []
134
101
  require_paths:
135
102
  - lib
136
103
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -146,10 +113,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
113
  - !ruby/object:Gem::Version
147
114
  version: '0'
148
115
  requirements: []
149
- rubyforge_project: di-ruby-lvm-attrib
116
+ rubyforge_project:
150
117
  rubygems_version: 1.8.25
151
118
  signing_key:
152
119
  specification_version: 3
153
- summary: This is a list of attributes for lvm objects
120
+ summary: A list of attributes for LVM objects
154
121
  test_files:
155
122
  - test/test_ruby-lvm-attributes.rb
data/.gemtest DELETED
File without changes
data/Manifest.txt DELETED
@@ -1,63 +0,0 @@
1
- bin/generate_field_data
2
- History.txt
3
- lib/lvm/attributes.rb
4
- lib/lvm/attributes/2.02.88(2)/pvs.yaml
5
- lib/lvm/attributes/2.02.88(2)/lvsseg.yaml
6
- lib/lvm/attributes/2.02.88(2)/vgs.yaml
7
- lib/lvm/attributes/2.02.88(2)/lvs.yaml
8
- lib/lvm/attributes/2.02.88(2)/pvsseg.yaml
9
- lib/lvm/attributes/2.02.27/pvs.yaml
10
- lib/lvm/attributes/2.02.27/lvsseg.yaml
11
- lib/lvm/attributes/2.02.27/vgs.yaml
12
- lib/lvm/attributes/2.02.27/lvs.yaml
13
- lib/lvm/attributes/2.02.27/pvsseg.yaml
14
- lib/lvm/attributes/2.02.26/pvs.yaml
15
- lib/lvm/attributes/2.02.26/lvsseg.yaml
16
- lib/lvm/attributes/2.02.26/vgs.yaml
17
- lib/lvm/attributes/2.02.26/lvs.yaml
18
- lib/lvm/attributes/2.02.26/pvsseg.yaml
19
- lib/lvm/attributes/2.02.29/pvs.yaml
20
- lib/lvm/attributes/2.02.29/lvsseg.yaml
21
- lib/lvm/attributes/2.02.29/vgs.yaml
22
- lib/lvm/attributes/2.02.29/lvs.yaml
23
- lib/lvm/attributes/2.02.29/pvsseg.yaml
24
- lib/lvm/attributes/2.02.66(2)/pvs.yaml
25
- lib/lvm/attributes/2.02.66(2)/lvsseg.yaml
26
- lib/lvm/attributes/2.02.66(2)/vgs.yaml
27
- lib/lvm/attributes/2.02.66(2)/lvs.yaml
28
- lib/lvm/attributes/2.02.66(2)/pvsseg.yaml
29
- lib/lvm/attributes/2.02.86(2)/pvs.yaml
30
- lib/lvm/attributes/2.02.86(2)/lvsseg.yaml
31
- lib/lvm/attributes/2.02.86(2)/vgs.yaml
32
- lib/lvm/attributes/2.02.86(2)/lvs.yaml
33
- lib/lvm/attributes/2.02.86(2)/pvsseg.yaml
34
- lib/lvm/attributes/2.02.30/pvs.yaml
35
- lib/lvm/attributes/2.02.30/lvsseg.yaml
36
- lib/lvm/attributes/2.02.30/vgs.yaml
37
- lib/lvm/attributes/2.02.30/lvs.yaml
38
- lib/lvm/attributes/2.02.30/pvsseg.yaml
39
- lib/lvm/attributes/2.02.98(2)/pvs.yaml
40
- lib/lvm/attributes/2.02.98(2)/lvsseg.yaml
41
- lib/lvm/attributes/2.02.98(2)/vgs.yaml
42
- lib/lvm/attributes/2.02.98(2)/lvs.yaml
43
- lib/lvm/attributes/2.02.98(2)/pvsseg.yaml
44
- lib/lvm/attributes/2.02.95(2)/pvs.yaml
45
- lib/lvm/attributes/2.02.95(2)/lvsseg.yaml
46
- lib/lvm/attributes/2.02.95(2)/vgs.yaml
47
- lib/lvm/attributes/2.02.95(2)/lvs.yaml
48
- lib/lvm/attributes/2.02.95(2)/pvsseg.yaml
49
- lib/lvm/attributes/2.02.84(2)/pvs.yaml
50
- lib/lvm/attributes/2.02.84(2)/lvsseg.yaml
51
- lib/lvm/attributes/2.02.84(2)/vgs.yaml
52
- lib/lvm/attributes/2.02.84(2)/lvs.yaml
53
- lib/lvm/attributes/2.02.84(2)/pvsseg.yaml
54
- lib/lvm/attributes/2.02.54(1)/pvs.yaml
55
- lib/lvm/attributes/2.02.54(1)/lvsseg.yaml
56
- lib/lvm/attributes/2.02.54(1)/vgs.yaml
57
- lib/lvm/attributes/2.02.54(1)/lvs.yaml
58
- lib/lvm/attributes/2.02.54(1)/pvsseg.yaml
59
- Manifest.txt
60
- Rakefile
61
- README.txt
62
- test/test_ruby-lvm-attributes.rb
63
- Todo.txt
data/Rakefile DELETED
@@ -1,14 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- require 'rubygems'
4
- require 'hoe'
5
- $:.unshift(File.dirname(__FILE__) + "/lib")
6
- require 'lvm/attributes'
7
-
8
- Hoe.spec 'di-ruby-lvm-attrib' do |p|
9
- p.developer('Matthew Kent', 'mkent@magoazul.com')
10
- p.developer('Greg Symons', 'gsymons@drillinginfo.com')
11
- p.remote_rdoc_dir = ''
12
- end
13
-
14
- # vim:syntax=ruby