The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH-2.5] Fix devfs' partition handling
@ 2003-03-28 11:48 Andre Landwehr
  0 siblings, 0 replies; only message in thread
From: Andre Landwehr @ 2003-03-28 11:48 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 677 bytes --]

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


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-28 11:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-28 11:48 [PATCH-2.5] Fix devfs' partition handling Andre Landwehr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox