Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access sysfs directly for device mapper names #35

Merged
merged 1 commit into from
Jun 14, 2016

Conversation

nomis
Copy link
Contributor

@nomis nomis commented May 22, 2016

There's no need to execute lsblk and cut for every device, just access the file in /sys that lsblk uses to get the name.

There's no need to execute lsblk and cut for every device, just access
the file in /sys that lsblk uses to get the name.
@cwjohnston
Copy link
Contributor

Based on https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-block-dm this change seems legit.

@cwjohnston cwjohnston added this to the 2.0.0 milestone Jun 14, 2016
@cwjohnston cwjohnston merged commit b07f473 into sensu-plugins:master Jun 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants