Skip to contentSkip to conversation

devfs on 2.5.34 and invisible partition

DISCUSSION Con Kolivas 2 participants 2 messages Sep 14, 2002 – Sep 15, 2002

lore
Share & tools
lore
#0 lore raw

My /dev/hda7 (ide/host0/bus0/target0/lun0/part7) was rendered invisible with devfs enabled in 2.5.34.

Disabling devfs made it visible again.

Con.

#1 lore raw
Quoted 4 lines

My /dev/hda7 (ide/host0/bus0/target0/lun0/part7) was rendered invisible with devfs enabled in 2.5.34.
Disabling devfs made it visible again.

Is /dev/hda7 the last partition of /dev/hda? Then apply this to check.c in linux/fs/partitions/.

check.c renamed from check.c~ +1 -1
@@ -327,7 +327,7 @@
 	devfs_auto_unregister(dev->disk_de, slave);
 	if (!(dev->flags & GENHD_FL_DEVFS))
 		devfs_auto_unregister (slave, dir);
-	for (part = 1, p++; part < max_p; part++, p++)
+	for (part = 1; part < max_p; part++, p++)
 		if (p->nr_sects)
 			devfs_register_partition(dev, part);
 #endif