e32acf95ea
The CAM subsystem uses bus:taget:lun tuple to address peripherals. But
for convenience many userland programs such as camcontrol accept devices
names such as da0. There is a libcam function, cam_open_device, to
support that. It first calls cam_get_device() to parse the device name
as a driver name and a unit (and handle some special device name
prefixes) and then uses cam_lookup_pass() to find a matching pass
device.
This change extends cam_get_device() to apply realpath(3) to the device
name before parsing it. This will allow to use tools such as camcontrol
and smartctl with symbolic links that could be friendlier (more
distinguished) names for devices.
Relnotes: maybe
(cherry picked from commit
|
||
---|---|---|
.. | ||
tests | ||
cam_cdbparse.3 | ||
cam.3 | ||
camlib.c | ||
camlib.h | ||
Makefile | ||
Makefile.depend | ||
scsi_cmdparse.c |