Sha256: 68400b3eb73dcf6a380e32619e214e429e1f48207390d3e6bd5ba762ce60e817
Contents?: true
Size: 1.93 KB
Versions: 5
Compression:
Stored size: 1.93 KB
Contents
# chef-ruby-lvm-attrib [](https://badge.fury.io/rb/chef-ruby-lvm-attrib) This is a list of attributes for lvm objects. They are generated from the source code and broken down by version. See [adding attributes](#updating-for-new-lvm-releases) below to contribute. At their core these files exist to determine which arguments to pass lvs/vgs/pvs and the subsequent type conversions. Currently this is split from the main ruby-lvm gem since these files require updating to follow LVM2 releases. ## Usage ```ruby require 'lvm/attributes' attributes = Attributes.load("2.0.36", "vgs.yaml") ``` ## Installation ```bash sudo gem install chef-ruby-lvm-attrib ``` ## Updating for new LVM releases To add attributes: Use `update-lvm.sh` script to add new version. Find the interested LVM2 tag from [LVM2 Repository](https://sourceware.org/git/?p=lvm2.git). - Fork this repository - `git clone your-forked-repo` - `cd your-forked-repo` - `./update-lvm.sh v2_02_155` The script will add `lib/lvm/attributes/LVM_VERSION` where `LVM_VERSION` being something like `2.02.86(2)` or `2.02.98(2)`. If the script will not error, it will create new branch and commit `Added LVM_VERSION attributes`. In case of error, see missing attribute type note below. If all is well, publish the changes and make Pull Request from GitHub web: - `git push origin mybranch` - Submit PR to this repository. ### Missing Attribute Type If you get an error like the below: ```text Oops, missing type conversion data of column 'discards' use by 'SEGS' which says its going to return a 'discards' Figure out the missing type and rerun. ``` - Look in `path/to/lvm-source/lib/report/columns.h` for the column name in the 7th field. - If the 3rd field is NUM, type will be Integer. If 3rd field is STR, type will be String. - Add the information to `bin/generate_field_data` in the TYPE_CONVERSION_MAP and try running again
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
chef-ruby-lvm-attrib-0.4.2 | README.md |
chef-ruby-lvm-attrib-0.4.1 | README.md |
chef-ruby-lvm-attrib-0.4.0 | README.md |
chef-ruby-lvm-attrib-0.3.15 | README.md |
chef-ruby-lvm-attrib-0.3.14 | README.md |