[Bug 413345] Re: incorrectly assumes /dev/mapper/ -> LVM

Colin Watson cjwatson at canonical.com
Thu Oct 1 01:18:38 UTC 2009


Here's the broken code (possibly other similar bits elsewhere):

int
grub_util_get_dev_abstraction (const char *os_dev UNUSED)
{
#ifdef __linux__
  /* Check for LVM.  */
  if (!strncmp (os_dev, "/dev/mapper/", 12))
    return GRUB_DEV_ABSTRACTION_LVM;

  /* Check for RAID.  */
  if (!strncmp (os_dev, "/dev/md", 7))
    return GRUB_DEV_ABSTRACTION_RAID;
#endif

  /* No abstraction found.  */
  return GRUB_DEV_ABSTRACTION_NONE;
}

-- 
incorrectly assumes /dev/mapper/ -> LVM
https://bugs.launchpad.net/bugs/413345
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list