From: Andre Landwehr <andre.landwehr@gmx.net>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH-2.5] Fix devfs' partition handling
Date: Fri, 28 Mar 2003 12:48:02 +0100 [thread overview]
Message-ID: <20030328114801.GA20934@mambo> (raw)
[-- 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 --]
reply other threads:[~2003-03-28 11:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030328114801.GA20934@mambo \
--to=andre.landwehr@gmx.net \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox