From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Subject: hctl from device name or major/minor Date: Tue, 2 Sep 2008 13:13:33 -0500 Message-ID: <20080902181333.GA29085@thumper2> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: dm-devel@redhat.com List-Id: dm-devel.ids 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