[PATCH-2.5] Fix devfs' partition handling

From: Andre Landwehr (andre.landwehr@gmx.net)
Date: Fri Mar 28 2003 - 06:48:02 EST


Hi,
with / on an IDE harddisk the disks partitions do not appear in
devfs, only the disc device. This is due to rescan_partitions
being called twice and deleting but not re-creating the entries
during the second call. Here's the patch:

diff -Nur linux-2.5-unmodified/fs/partitions/check.c linux-2.5/fs/partitions/check.c
--- linux-2.5-unmodified/fs/partitions/check.c Thu Mar 27 13:44:20 2003
+++ linux-2.5/fs/partitions/check.c Fri Mar 28 11:48:21 2003
@@ -262,6 +262,7 @@
         p->nr_sects = 0;
         p->reads = p->writes = p->read_sectors = p->write_sectors = 0;
         devfs_unregister(p->de);
+ p->de = NULL;
         kobject_unregister(&p->kobj);
 }
 

Have fun
Andre



-
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/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:32 EST