name = udev_device_get_sysname(parent);
if (sscanf(name, "%d:%d:%d:%d", &host, &bus, &target, &lun) != 4) return NULL;
This works fine, host is "10" in the scsi_debug case above.
But then the code below which does "Rebase host offset to get the local relative number" turns host into a "0" as 10 is the smallest host number on that device. This code is a bit dubious to me, I'll ask Kay.
Debugging notes:
name = udev_device_ get_sysname( parent) ;
return NULL;
if (sscanf(name, "%d:%d:%d:%d", &host, &bus, &target, &lun) != 4)
This works fine, host is "10" in the scsi_debug case above.
But then the code below which does "Rebase host offset to get the local relative number" turns host into a "0" as 10 is the smallest host number on that device. This code is a bit dubious to me, I'll ask Kay.