[Bug 1583138] [NEW] s390-dasd assumes all drives are on 0.0. prefix

Dimitri John Ledkov launchpad at surgut.co.uk
Wed May 18 12:03:02 UTC 2016


Public bug reported:

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.

** Affects: s390-dasd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to s390-dasd in Ubuntu.
https://bugs.launchpad.net/bugs/1583138

Title:
  s390-dasd assumes all drives are on 0.0. prefix

Status in s390-dasd package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/s390-dasd/+bug/1583138/+subscriptions



More information about the foundations-bugs mailing list