Messages in this thread Patch in this message | | | Date | Fri, 28 Mar 2003 12:48:02 +0100 | From | Andre Landwehr <> | Subject | [PATCH-2.5] Fix devfs' partition handling |
| |
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
[unhandled content-type:application/pgp-signature] | |