Linux Device Mapper development
 help / color / mirror / Atom feed
From: Andy <genanr@emsphone.com>
To: dm-devel@redhat.com
Subject: hctl from device name or major/minor
Date: Tue, 2 Sep 2008 13:13:33 -0500	[thread overview]
Message-ID: <20080902181333.GA29085@thumper2> (raw)

	What is the best way to get the hctl from the device name or major/minor
pair?  Specificly for use in a prio_callout program for multipath?  Is there
an API interface in the device mapper of sysfs libraries I should use to get
this information or should I just scan the appropriate /sys directory? 
Currently I just have a simple shell script to give me the path priority I
need, but would like to make it a c program.

Thanks,

Andy

                 reply	other threads:[~2008-09-02 18:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080902181333.GA29085@thumper2 \
    --to=genanr@emsphone.com \
    --cc=dm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox