Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chef-ruby-lvm-attrib

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chef-ruby-lvm-attrib

  • 0.4.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

chef-ruby-lvm-attrib

Gem Version

This is a list of attributes for lvm objects. They are generated from the source code and broken down by version. See adding attributes 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

  require 'lvm/attributes'

  attributes = Attributes.load("2.0.36", "vgs.yaml")

Installation

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.

  • 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:

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

FAQs

Package last updated on 28 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc