Comment 3 for bug 1321816

Revision history for this message
Martin Pitt (pitti) wrote : Re: /dev/disk/by-path link for scsi disks always has host "0", causing conflicts

Debugging notes:

       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.