Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsymons committed May 12, 2016
2 parents 4ede2e4 + 1f7bc4e commit 031ffe7
Show file tree
Hide file tree
Showing 14 changed files with 1,282 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.0.26 (2016-05-12)
- Added LVM attributes for version 2.02.149
- Added LVM attributes for version 2.02.143(2)

# 0.0.25 (2016-03-08)
- Added LVM attributes for version 2.02.122(2)

Expand Down
2 changes: 2 additions & 0 deletions bin/generate_field_data
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion lib/lvm/attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module LVM
module Attributes
VERSION = '0.0.25'
VERSION = '0.0.26'

def load(version, name)
cwd = File.dirname(__FILE__)
Expand Down
260 changes: 260 additions & 0 deletions lib/lvm/attributes/2.02.143(2)/lvs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
# These are column to object attribute mappings
# generated by bin/generate_field_data based on
# e:/downloads/lvm2-2_02_143/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: Ancestors of this LV.
- :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: Descendants of this LV.
- :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_name
:column: lv_full_name
:type_hint: String
:description: Full name of LV including its VG
- :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: 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.
Loading

0 comments on commit 031ffe7

Please sign in to comment.