s390-dasd assumes all drives are on 0.0. prefix

Bug #1583138 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
s390-dasd (Ubuntu)
New
Undecided
Unassigned

Bug Description

static int channel_device (const char *i)
{
        unsigned int ret;
        if (sscanf (i, "0.0.%04x", &ret) == 1)
                return ret;
        if (sscanf (i, "%04x", &ret) == 1)
                return ret;
        return -1;
}

And subsequenty assumes that dasd drive must be an integer, and always under 0.0. prefix. In actual fact 1.1. ids could be used too. At least, linux kernel can.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.