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

Resolve logical volume name #2

Open
hayamiz opened this issue May 29, 2013 · 0 comments
Open

Resolve logical volume name #2

hayamiz opened this issue May 29, 2013 · 0 comments
Assignees
Labels

Comments

@hayamiz
Copy link
Owner

hayamiz commented May 29, 2013

If /dev/mapper/VolGroup00-LogVol00 or /dev/VolGroup00/LogVol00 is passed to perfmonger record via -d option, convert it to corresponding device name dm-x.

This is done by following steps:

  1. Build device name dictionary by reading /proc/partitions
  2. Parse input and identify the path of logical volume
  3. stat(3) the volume and get major/minor number of the volume
  4. Look up the dictionary build in step 1. with major/minor number
@ghost ghost assigned hayamiz May 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant