Re: devfs on 2.5.34 and invisible partition

Hiroshi Takekawa (sian@big.or.jp)
Sun, 15 Sep 2002 11:53:48 +0900 (JST)


> 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~ Tue Sep 10 19:34:55 2002
+++ check.c Wed Sep 11 19:55:29 2002
@@ -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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/