2.5.68-bk1 renames IDE disks, /dev/hda is directory

2.5.68-bk1 renames IDE disks, /dev/hda is directory

Post by Christoph Hellwi » Tue, 22 Apr 2003 18:50:08




> Hello!

> After upgrading from 2.5.67-bk9 to 2.5.68-bk1 I have found that the devfs
> names for IDE disks have changed.  Instead of the traditional
> 2.4-compatible /dev/ide/host0/bus0/target0/lun0/part1, /dev/hda1 has now
> become /dev/hda/disc0/part1.

> What's really weird is that /dev/hda is now a directory.  That's going to
> break a lot of software!

Hey, that wasn't intentation.  In fact it's a stupid brown-paperbag bug
only hidden by mount-by-label :)

Here's the fix:

--- 1.1/fs/partitions/devfs.c   Sat Apr 19 20:57:36 2003

 {
        char dirname[64], symlink[16];

-       if (disk->devfs_name[0] != '\0')
+       if (disk->devfs_name[0] == '\0')
                sprintf(disk->devfs_name, "%s/disc%d", disk->disk_name,
                                disk->first_minor >> disk->minor_shift);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.68-bk1 renames IDE disks, /dev/hda is directory

Post by Pavel Roski » Tue, 22 Apr 2003 19:00:17



> Hey, that wasn't intentation.  In fact it's a stupid brown-paperbag bug
> only hidden by mount-by-label :)

The patch worked nevertheless :)
Thank you!

--
Regards,
Pavel Roskin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.68-bk1 renames IDE disks, /dev/hda is directory

Post by Pavel Roski » Fri, 25 Apr 2003 19:10:08


Somebody please apply this patch:

http://hypermail.idiosynkrasia.net/linux-kernel/latestweek/0150.html

It's still not in 2.5.68-bk5.  It's a major headache for everybody who
tries to use devfs with the current kernel.

--
Regards,
Pavel Roskin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.68-bk1 renames IDE disks, /dev/hda is directory

Post by Christoph Hellwi » Fri, 25 Apr 2003 19:10:12



> Somebody please apply this patch:

> http://hypermail.idiosynkrasia.net/linux-kernel/latestweek/0150.html

> It's still not in 2.5.68-bk5.  It's a major headache for everybody who
> tries to use devfs with the current kernel.

Sorry, I sent this to Linus two times but he hasn't applied it yet :P

Linus, could you please apply this patch so all thos poor devfs
users get their disks back?

--- 1.1/fs/partitions/devfs.c   Sat Apr 19 20:57:36 2003

 {
        char dirname[64], symlink[16];

-       if (disk->devfs_name[0] != '\0')
-               sprintf(disk->devfs_name, "%s/disc%d", disk->disk_name,
-                               disk->first_minor >> disk->minor_shift);
-
        devfs_mk_dir(disk->devfs_name);
        devfs_mk_bdev(MKDEV(disk->major, disk->first_minor),
                        S_IFBLK|S_IRUSR|S_IWUSR,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.68-bk1 renames IDE disks, /dev/hda is directory

Post by Pavel Roski » Fri, 25 Apr 2003 20:00:18




> > Somebody please apply this patch:

> > http://hypermail.idiosynkrasia.net/linux-kernel/latestweek/0150.html

> > It's still not in 2.5.68-bk5.  It's a major headache for everybody who
> > tries to use devfs with the current kernel.

> Sorry, I sent this to Linus two times but he hasn't applied it yet :P

> Linus, could you please apply this patch so all thos poor devfs
> users get their disks back?

I confirm that the new patch is working for me just as well as the old
one.

--
Regards,
Pavel Roskin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/