holandes22/dmtcore — Issue #8: Task - Find a way to obtain hctl in CentOS
Author: holandes22
Created: 2012-01-27 15:27:28+00:00
State: open
Labels: 1 - Todo

Under debian is fairly easy since I need to simple read the link /sys/block/sda*/device and get the hctl from that string.
But in centos we need to read a link that is it formed by the hctl:
/sys/block/sda*/device/scsi_disk:H:C:T:L where :H:C:T:L are the numbers we need