Skip to contentSkip to conversation

for 2.5.50, sysfs works wrong in some cases

PATCH New Alex Tomas 1 participant 1 message Dec 5, 2002 Block layer

lore
Share & tools
lore

Alex Tomas

author
#0 lore raw

PATCH 1/1 for 2.5.50, sysfs works wrong in some cases

Hello!

I've just found that 2.5.50 can't open root device specified in 'root=/dev/sda3' form. As for me, following patch solves problem:

drivers/block/genhd.c Thu Dec 5 18:17:27 2002 renamed from linux-2.5.50/drivers/block/genhd.c Mon Nov 11 06:28:13 2002 +0 -1
@@ -408,7 +408,6 @@
                disk->minors = minors;
                while (minors >>= 1)
                        disk->minor_shift++;
-               kobject_init(&disk->kobj);
                disk->kobj.subsys = &block_subsys;
                INIT_LIST_HEAD(&disk->full_list);
 

kobject_init() will be called from kobject_register().

with best, regards