[packages/ruby-di-ruby-lvm-attrib] - updated md5sum - fix build with lvm 2.02.149 - rel 1

baggins baggins at pld-linux.org
Sat Apr 30 10:31:49 CEST 2016


commit 138fff528e500acd6db3e90e14da431b9b320e1c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Apr 30 10:31:28 2016 +0200

    - updated md5sum
    - fix build with lvm 2.02.149
    - rel 1

 lvm2.02.149.patch            | 692 +++++++++++++++++++++++++++++++++++++++++++
 ruby-di-ruby-lvm-attrib.spec |   7 +-
 2 files changed, 697 insertions(+), 2 deletions(-)
---
diff --git a/ruby-di-ruby-lvm-attrib.spec b/ruby-di-ruby-lvm-attrib.spec
index f2a4d94..97e2150 100644
--- a/ruby-di-ruby-lvm-attrib.spec
+++ b/ruby-di-ruby-lvm-attrib.spec
@@ -2,11 +2,12 @@
 Summary:	A list of attributes for LVM objects
 Name:		ruby-%{pkgname}
 Version:	0.0.25
-Release:	0.1
+Release:	1
 License:	GPL v2+ or Ruby
 Group:		Development/Languages
 Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
-# Source0-md5:	7bd939d326737773e8bf3a231a488adc
+# Source0-md5:	f689331aca1d5975345c8ab6bcf3d8b8
+Patch0:		lvm2.02.149.patch
 URL:		https://github.com/gregsymons/di-ruby-lvm-attrib
 BuildRequires:	device-mapper-devel
 BuildRequires:	rpm-rubyprov
@@ -23,6 +24,8 @@ A list of attributes for LVM objects.
 
 %prep
 %setup -q -n %{pkgname}-%{version}
+%patch0 -p1
+
 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 
 # as we have strict dep on lvm2 package, we do not need other versions
diff --git a/lvm2.02.149.patch b/lvm2.02.149.patch
new file mode 100644
index 0000000..bf9cf4b
--- /dev/null
+++ b/lvm2.02.149.patch
@@ -0,0 +1,692 @@
+commit 7301ae1c0f4bcb9c72dbf0c80b32890546564afb
+Author: Jan Rękorajski <baggins at pld-linux.org>
+Date:   Sat Apr 30 10:29:07 2016 +0200
+
+    Add support for LVM 2.02.149
+
+diff --git a/bin/generate_field_data b/bin/generate_field_data
+index 5edf3cb..a5fea16 100755
+--- a/bin/generate_field_data
++++ b/bin/generate_field_data
+@@ -50,6 +50,8 @@ TYPE_CONVERSION_MAP = {
+   "snapcount" => "Integer",
+   "vgmdafree" => "Integer",
+   "vgmdasize" => "Integer",
++  "pvextvsn" => "Integer",
++  "vgmissingpvcount" => "Integer",
+   # Weird one, can be "auto" or size32
+   "lvreadahead" => "String",
+   "lvmetadatasize" => "Integer",
+diff --git a/lib/lvm/attributes/2.02.149(2)/lvs.yaml b/lib/lvm/attributes/2.02.149(2)/lvs.yaml
+new file mode 100644
+index 0000000..f5b8b4e
+--- /dev/null
++++ b/lib/lvm/attributes/2.02.149(2)/lvs.yaml
+@@ -0,0 +1,276 @@
++# These are column to object attribute mappings
++# generated by ./bin/generate_field_data based on
++# lvm2/lib/report/columns.h
++---
++- :method: convert_lv
++  :column: convert_lv
++  :type_hint: String
++  :description: For lvconvert
++- :method: convert_lv_uuid
++  :column: convert_lv_uuid
++  :type_hint: String
++  :description: For lvconvert
++- :method: copy_percent
++  :column: copy_percent
++  :type_hint: String
++  :description: For RAID
++- :method: data_lv
++  :column: data_lv
++  :type_hint: String
++  :description: For thin and cache pools
++- :method: data_lv_uuid
++  :column: data_lv_uuid
++  :type_hint: String
++  :description: For thin and cache pools
++- :method: data_percent
++  :column: data_percent
++  :type_hint: String
++  :description: For snapshot and thin pools and volumes
++- :method: active
++  :column: lv_active
++  :type_hint: String
++  :description: Active state of the LV.
++- :method: active_exclusively
++  :column: lv_active_exclusively
++  :type_hint: String
++  :description: Set if the LV is active exclusively.
++- :method: active_locally
++  :column: lv_active_locally
++  :type_hint: String
++  :description: Set if the LV is active locally.
++- :method: active_remotely
++  :column: lv_active_remotely
++  :type_hint: String
++  :description: Set if the LV is active remotely.
++- :method: allocation_locked
++  :column: lv_allocation_locked
++  :type_hint: String
++  :description: Set if LV is locked against allocation changes.
++- :method: allocation_policy
++  :column: lv_allocation_policy
++  :type_hint: String
++  :description: LV allocation policy.
++- :method: ancestors
++  :column: lv_ancestors
++  :type_hint: String
++  :description: LV ancestors ignoring any stored history of the ancestry chain.
++- :method: attr
++  :column: lv_attr
++  :type_hint: String
++  :description: Various attributes - see man page.
++- :method: converting
++  :column: lv_converting
++  :type_hint: String
++  :description: Set if LV is being converted.
++- :method: descendants
++  :column: lv_descendants
++  :type_hint: String
++  :description: LV descendants ignoring any stored history of the ancestry chain.
++- :method: dm_path
++  :column: lv_dm_path
++  :type_hint: String
++  :description: Internal device-mapper pathname for LV (in /dev/mapper directory).
++- :method: fixed_minor
++  :column: lv_fixed_minor
++  :type_hint: String
++  :description: Set if LV has fixed minor number assigned.
++- :method: full_ancestors
++  :column: lv_full_ancestors
++  :type_hint: String
++  :description: LV ancestors including stored history of the ancestry chain.
++- :method: full_descendants
++  :column: lv_full_descendants
++  :type_hint: String
++  :description: LV descendants including stored history of the ancestry chain.
++- :method: full_name
++  :column: lv_full_name
++  :type_hint: String
++  :description: Full name of LV including its VG
++- :method: historical
++  :column: lv_historical
++  :type_hint: String
++  :description: Set if the LV is historical.
++- :method: host
++  :column: lv_host
++  :type_hint: String
++  :description: Creation host of the LV
++- :method: image_synced
++  :column: lv_image_synced
++  :type_hint: String
++  :description: Set if mirror/RAID image is synchronized.
++- :method: initial_image_sync
++  :column: lv_initial_image_sync
++  :type_hint: String
++  :description: Set if mirror/RAID images underwent initial resynchronization.
++- :method: layout
++  :column: lv_layout
++  :type_hint: String
++  :description: LV layout.
++- :method: lockargs
++  :column: lv_lockargs
++  :type_hint: String
++  :description: Lock args of the LV used by lvmlockd.
++- :method: major
++  :column: lv_major
++  :type_hint: String
++  :description: Persistent major number or -1 if not persistent.
++- :method: merge_failed
++  :column: lv_merge_failed
++  :type_hint: String
++  :description: Set if snapshot merge failed.
++- :method: merging
++  :column: lv_merging
++  :type_hint: String
++  :description: Set if snapshot LV is being merged to origin.
++- :method: metadata_size
++  :column: lv_metadata_size
++  :type_hint: Integer
++  :description: For thin and cache pools
++- :method: minor
++  :column: lv_minor
++  :type_hint: String
++  :description: Persistent minor number or -1 if not persistent.
++- :method: modules
++  :column: lv_modules
++  :type_hint: String
++  :description: Kernel device-mapper modules required for this LV.
++- :method: name
++  :column: lv_name
++  :type_hint: String
++  :description: Name.  LVs created for internal use are enclosed in brackets.
++- :method: parent
++  :column: lv_parent
++  :type_hint: String
++  :description: For LVs that are components of another LV
++- :method: path
++  :column: lv_path
++  :type_hint: String
++  :description: Full pathname for LV. Blank for internal LVs.
++- :method: profile
++  :column: lv_profile
++  :type_hint: String
++  :description: Configuration profile attached to this LV.
++- :method: read_ahead
++  :column: lv_read_ahead
++  :type_hint: String
++  :description: Read ahead setting in current units.
++- :method: role
++  :column: lv_role
++  :type_hint: String
++  :description: LV role.
++- :method: size
++  :column: lv_size
++  :type_hint: Integer
++  :description: Size of LV in current units.
++- :method: skip_activation
++  :column: lv_skip_activation
++  :type_hint: String
++  :description: Set if LV is skipped on activation.
++- :method: snapshot_invalid
++  :column: lv_snapshot_invalid
++  :type_hint: String
++  :description: Set if snapshot LV is invalid.
++- :method: tags
++  :column: lv_tags
++  :type_hint: String
++  :description: Tags
++- :method: time
++  :column: lv_time
++  :type_hint: String
++  :description: Creation time of the LV
++- :method: time_removed
++  :column: lv_time_removed
++  :type_hint: String
++  :description: Removal time of the LV
++- :method: uuid
++  :column: lv_uuid
++  :type_hint: String
++  :description: Unique identifier.
++- :method: when_full
++  :column: lv_when_full
++  :type_hint: String
++  :description: For thin pools
++- :method: metadata_lv
++  :column: metadata_lv
++  :type_hint: String
++  :description: For thin and cache pools
++- :method: metadata_lv_uuid
++  :column: metadata_lv_uuid
++  :type_hint: String
++  :description: For thin and cache pools
++- :method: metadata_percent
++  :column: metadata_percent
++  :type_hint: String
++  :description: For thin pools
++- :method: mirror_log
++  :column: mirror_log
++  :type_hint: String
++  :description: For mirrors
++- :method: mirror_log_uuid
++  :column: mirror_log_uuid
++  :type_hint: String
++  :description: For mirrors
++- :method: move_pv
++  :column: move_pv
++  :type_hint: String
++  :description: For pvmove
++- :method: move_pv_uuid
++  :column: move_pv_uuid
++  :type_hint: String
++  :description: For pvmove
++- :method: origin
++  :column: origin
++  :type_hint: String
++  :description: For snapshots
++- :method: origin_size
++  :column: origin_size
++  :type_hint: Integer
++  :description: For snapshots
++- :method: origin_uuid
++  :column: origin_uuid
++  :type_hint: String
++  :description: For snapshots
++- :method: pool_lv
++  :column: pool_lv
++  :type_hint: String
++  :description: For thin volumes
++- :method: pool_lv_uuid
++  :column: pool_lv_uuid
++  :type_hint: String
++  :description: For thin volumes
++- :method: raid_max_recovery_rate
++  :column: raid_max_recovery_rate
++  :type_hint: Integer
++  :description: For RAID1
++- :method: raid_min_recovery_rate
++  :column: raid_min_recovery_rate
++  :type_hint: Integer
++  :description: For RAID1
++- :method: raid_mismatch_count
++  :column: raid_mismatch_count
++  :type_hint: Integer
++  :description: For RAID
++- :method: raid_sync_action
++  :column: raid_sync_action
++  :type_hint: String
++  :description: For RAID
++- :method: raid_write_behind
++  :column: raid_write_behind
++  :type_hint: Integer
++  :description: For RAID1
++- :method: seg_count
++  :column: seg_count
++  :type_hint: Integer
++  :description: Number of segments in LV.
++- :method: snap_percent
++  :column: snap_percent
++  :type_hint: String
++  :description: For snapshots
++- :method: sync_percent
++  :column: sync_percent
++  :type_hint: String
++  :description: For RAID
++- :method: vg_uuid
++  :column: vg_uuid
++  :type_hint: String
++  :description: For VolumeGroup to LogicalVolume relationship.
+diff --git a/lib/lvm/attributes/2.02.149(2)/lvsseg.yaml b/lib/lvm/attributes/2.02.149(2)/lvsseg.yaml
+new file mode 100644
+index 0000000..af1563a
+--- /dev/null
++++ b/lib/lvm/attributes/2.02.149(2)/lvsseg.yaml
+@@ -0,0 +1,106 @@
++# These are column to object attribute mappings
++# generated by ./bin/generate_field_data based on
++# lvm2/lib/report/columns.h
++---
++- :method: cache_mode
++  :column: cache_mode
++  :type_hint: String
++  :description: For cache pools
++- :method: cache_policy
++  :column: cache_policy
++  :type_hint: String
++  :description: The cache policy (cached segments only).
++- :method: cache_settings
++  :column: cache_settings
++  :type_hint: String
++  :description: Cache settings/parameters (cached segments only).
++- :method: chunk_size
++  :column: chunk_size
++  :type_hint: Integer
++  :description: For snapshots
++- :method: devices
++  :column: devices
++  :type_hint: String
++  :description: Underlying devices used with starting extent numbers.
++- :method: discards
++  :column: discards
++  :type_hint: String
++  :description: For thin pools
++- :method: lv_uuid
++  :column: lv_uuid
++  :type_hint: String
++  :description: For LogicalVolume to LogicalVolumeSegment relationship.
++- :method: metadata_devices
++  :column: metadata_devices
++  :type_hint: String
++  :description: Underlying metadata devices used with starting extent numbers.
++- :method: region_size
++  :column: region_size
++  :type_hint: Integer
++  :description: For mirrors
++- :method: le_ranges
++  :column: seg_le_ranges
++  :type_hint: String
++  :description: Ranges of Logical Extents of underlying devices in command line format.
++- :method: metadata_le_ranges
++  :column: seg_metadata_le_ranges
++  :type_hint: String
++  :description: Ranges of Logical Extents of underlying metadata devices in command
++    line format.
++- :method: monitor
++  :column: seg_monitor
++  :type_hint: String
++  :description: Dmeventd monitoring status of the segment.
++- :method: pe_ranges
++  :column: seg_pe_ranges
++  :type_hint: String
++  :description: Ranges of Physical Extents of underlying devices in command line format
++    (deprecated
++- :method: size
++  :column: seg_size
++  :type_hint: Integer
++  :description: Size of segment in current units.
++- :method: size_pe
++  :column: seg_size_pe
++  :type_hint: Integer
++  :description: Size of segment in physical extents.
++- :method: start
++  :column: seg_start
++  :type_hint: Integer
++  :description: Offset within the LV to the start of the segment in current units.
++- :method: start_pe
++  :column: seg_start_pe
++  :type_hint: Integer
++  :description: Offset within the LV to the start of the segment in physical extents.
++- :method: tags
++  :column: seg_tags
++  :type_hint: String
++  :description: Tags
++- :method: segtype
++  :column: segtype
++  :type_hint: String
++  :description: Type of LV segment.
++- :method: stripe_size
++  :column: stripe_size
++  :type_hint: Integer
++  :description: For stripes
++- :method: stripes
++  :column: stripes
++  :type_hint: Integer
++  :description: Number of stripes or mirror legs.
++- :method: thin_count
++  :column: thin_count
++  :type_hint: Integer
++  :description: For thin pools
++- :method: thin_id
++  :column: thin_id
++  :type_hint: Integer
++  :description: For thin volume
++- :method: transaction_id
++  :column: transaction_id
++  :type_hint: Integer
++  :description: For thin pools
++- :method: zero
++  :column: zero
++  :type_hint: String
++  :description: For thin pools
+diff --git a/lib/lvm/attributes/2.02.149(2)/pvs.yaml b/lib/lvm/attributes/2.02.149(2)/pvs.yaml
+new file mode 100644
+index 0000000..f27922f
+--- /dev/null
++++ b/lib/lvm/attributes/2.02.149(2)/pvs.yaml
+@@ -0,0 +1,109 @@
++# These are column to object attribute mappings
++# generated by ./bin/generate_field_data based on
++# lvm2/lib/report/columns.h
++---
++- :method: dev_size
++  :column: dev_size
++  :type_hint: Integer
++  :description: Size of underlying device in current units.
++- :method: pe_start
++  :column: pe_start
++  :type_hint: Integer
++  :description: Offset to the start of data on the underlying device.
++- :method: allocatable
++  :column: pv_allocatable
++  :type_hint: String
++  :description: Set if this device can be used for allocation.
++- :method: attr
++  :column: pv_attr
++  :type_hint: String
++  :description: Various attributes - see man page.
++- :method: ba_size
++  :column: pv_ba_size
++  :type_hint: Integer
++  :description: Size of PV Bootloader Area in current units.
++- :method: ba_start
++  :column: pv_ba_start
++  :type_hint: Integer
++  :description: Offset to the start of PV Bootloader Area on the underlying device
++    in current units.
++- :method: exported
++  :column: pv_exported
++  :type_hint: String
++  :description: Set if this device is exported.
++- :method: ext_vsn
++  :column: pv_ext_vsn
++  :type_hint: Integer
++  :description: PV header extension version.
++- :method: fmt
++  :column: pv_fmt
++  :type_hint: String
++  :description: Type of metadata.
++- :method: free
++  :column: pv_free
++  :type_hint: Integer
++  :description: Total amount of unallocated space in current units.
++- :method: in_use
++  :column: pv_in_use
++  :type_hint: String
++  :description: Set if PV is used.
++- :method: major
++  :column: pv_major
++  :type_hint: String
++  :description: Device major number.
++- :method: mda_count
++  :column: pv_mda_count
++  :type_hint: Integer
++  :description: Number of metadata areas on this device.
++- :method: mda_free
++  :column: pv_mda_free
++  :type_hint: Integer
++  :description: Free metadata area space on this device in current units.
++- :method: mda_size
++  :column: pv_mda_size
++  :type_hint: Integer
++  :description: Size of smallest metadata area on this device in current units.
++- :method: mda_used_count
++  :column: pv_mda_used_count
++  :type_hint: Integer
++  :description: Number of metadata areas in use on this device.
++- :method: minor
++  :column: pv_minor
++  :type_hint: String
++  :description: Device minor number.
++- :method: missing
++  :column: pv_missing
++  :type_hint: String
++  :description: Set if this device is missing in system.
++- :method: name
++  :column: pv_name
++  :type_hint: String
++  :description: Name.
++- :method: pe_alloc_count
++  :column: pv_pe_alloc_count
++  :type_hint: Integer
++  :description: Total number of allocated Physical Extents.
++- :method: pe_count
++  :column: pv_pe_count
++  :type_hint: Integer
++  :description: Total number of Physical Extents.
++- :method: size
++  :column: pv_size
++  :type_hint: Integer
++  :description: Size of PV in current units.
++- :method: tags
++  :column: pv_tags
++  :type_hint: String
++  :description: Tags
++- :method: used
++  :column: pv_used
++  :type_hint: Integer
++  :description: Total amount of allocated space in current units.
++- :method: uuid
++  :column: pv_uuid
++  :type_hint: String
++  :description: Unique identifier.
++- :method: vg_uuid
++  :column: vg_uuid
++  :type_hint: String
++  :description: For VolumeGroup to PhysicalVolume relationship.
+diff --git a/lib/lvm/attributes/2.02.149(2)/pvsseg.yaml b/lib/lvm/attributes/2.02.149(2)/pvsseg.yaml
+new file mode 100644
+index 0000000..5ae89c6
+--- /dev/null
++++ b/lib/lvm/attributes/2.02.149(2)/pvsseg.yaml
+@@ -0,0 +1,16 @@
++# These are column to object attribute mappings
++# generated by ./bin/generate_field_data based on
++# lvm2/lib/report/columns.h
++---
++- :method: pv_uuid
++  :column: pv_uuid
++  :type_hint: String
++  :description: For PhysicalVolume to PhysicalVolumeSegment relationship.
++- :method: size
++  :column: pvseg_size
++  :type_hint: Integer
++  :description: Number of extents in segment.
++- :method: start
++  :column: pvseg_start
++  :type_hint: Integer
++  :description: Physical Extent number of start of segment.
+diff --git a/lib/lvm/attributes/2.02.149(2)/vgs.yaml b/lib/lvm/attributes/2.02.149(2)/vgs.yaml
+new file mode 100644
+index 0000000..4f019f9
+--- /dev/null
++++ b/lib/lvm/attributes/2.02.149(2)/vgs.yaml
+@@ -0,0 +1,136 @@
++# These are column to object attribute mappings
++# generated by ./bin/generate_field_data based on
++# lvm2/lib/report/columns.h
++---
++- :method: lv_count
++  :column: lv_count
++  :type_hint: Integer
++  :description: Number of LVs.
++- :method: max_lv
++  :column: max_lv
++  :type_hint: Integer
++  :description: Maximum number of LVs allowed in VG or 0 if unlimited.
++- :method: max_pv
++  :column: max_pv
++  :type_hint: Integer
++  :description: Maximum number of PVs allowed in VG or 0 if unlimited.
++- :method: pv_count
++  :column: pv_count
++  :type_hint: Integer
++  :description: Number of PVs in VG.
++- :method: snap_count
++  :column: snap_count
++  :type_hint: Integer
++  :description: Number of snapshots.
++- :method: allocation_policy
++  :column: vg_allocation_policy
++  :type_hint: String
++  :description: VG allocation policy.
++- :method: attr
++  :column: vg_attr
++  :type_hint: String
++  :description: Various attributes - see man page.
++- :method: clustered
++  :column: vg_clustered
++  :type_hint: String
++  :description: Set if VG is clustered.
++- :method: exported
++  :column: vg_exported
++  :type_hint: String
++  :description: Set if VG is exported.
++- :method: extendable
++  :column: vg_extendable
++  :type_hint: String
++  :description: Set if VG is extendable.
++- :method: extent_count
++  :column: vg_extent_count
++  :type_hint: Integer
++  :description: Total number of Physical Extents.
++- :method: extent_size
++  :column: vg_extent_size
++  :type_hint: Integer
++  :description: Size of Physical Extents in current units.
++- :method: fmt
++  :column: vg_fmt
++  :type_hint: String
++  :description: Type of metadata.
++- :method: free
++  :column: vg_free
++  :type_hint: Integer
++  :description: Total amount of free space in current units.
++- :method: free_count
++  :column: vg_free_count
++  :type_hint: Integer
++  :description: Total number of unallocated Physical Extents.
++- :method: lock_args
++  :column: vg_lock_args
++  :type_hint: String
++  :description: Lock args of the VG used by lvmlockd.
++- :method: lock_type
++  :column: vg_lock_type
++  :type_hint: String
++  :description: Lock type of the VG used by lvmlockd.
++- :method: mda_copies
++  :column: vg_mda_copies
++  :type_hint: Integer
++  :description: Target number of in use metadata areas in the VG.
++- :method: mda_count
++  :column: vg_mda_count
++  :type_hint: Integer
++  :description: Number of metadata areas on this VG.
++- :method: mda_free
++  :column: vg_mda_free
++  :type_hint: Integer
++  :description: Free metadata area space for this VG in current units.
++- :method: mda_size
++  :column: vg_mda_size
++  :type_hint: Integer
++  :description: Size of smallest metadata area for this VG in current units.
++- :method: mda_used_count
++  :column: vg_mda_used_count
++  :type_hint: Integer
++  :description: Number of metadata areas in use on this VG.
++- :method: missing_pv_count
++  :column: vg_missing_pv_count
++  :type_hint: Integer
++  :description: Number of PVs in VG which are missing.
++- :method: name
++  :column: vg_name
++  :type_hint: String
++  :description: Name.
++- :method: partial
++  :column: vg_partial
++  :type_hint: String
++  :description: Set if VG is partial.
++- :method: permissions
++  :column: vg_permissions
++  :type_hint: String
++  :description: VG permissions.
++- :method: profile
++  :column: vg_profile
++  :type_hint: String
++  :description: Configuration profile attached to this VG.
++- :method: seqno
++  :column: vg_seqno
++  :type_hint: Integer
++  :description: Revision number of internal metadata.  Incremented whenever it changes.
++- :method: size
++  :column: vg_size
++  :type_hint: Integer
++  :description: Total size of VG in current units.
++- :method: sysid
++  :column: vg_sysid
++  :type_hint: String
++  :description: System ID of the VG indicating which host owns it.
++- :method: systemid
++  :column: vg_systemid
++  :type_hint: String
++  :description: System ID of the VG indicating which host owns it.
++- :method: tags
++  :column: vg_tags
++  :type_hint: String
++  :description: Tags
++- :method: uuid
++  :column: vg_uuid
++  :type_hint: String
++  :description: Unique identifier.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-di-ruby-lvm-attrib.git/commitdiff/138fff528e500acd6db3e90e14da431b9b320e1c



More information about the pld-cvs-commit mailing list