Commit 7ceef18f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix devfs' partition handling

From: Andre Landwehr <andre.landwehr@gmx.net>

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.

hch has acked this.
parent 8a8e9c88
......@@ -262,6 +262,7 @@ void delete_partition(struct gendisk *disk, int part)
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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment