hi

i need to map from a file name to the scsi id of the device the file is
in.
i know now that ioctl SCSI_IOCTL_GET_IDLUN will give me the desired scsi
info, but i need to have an open file-descriptor to the scsi device to
be able to issue that ioctl command.

as i said i only have the file name, but not the device name, the only
hint i got is the dev_t field
returned by the stst(2) sys_call.

is there a way to translate from dev_t into device name( in a format
understandable by open(2) ) ?
if not can i get the scsi info( target-id + logical-unit ) using that
dev_t ?

please CC me for any answer as i'm not register to the mailing list

THX
/gabriel


Reply via email to