[PATCH-2.5] Fix devfs' partition handling

Andre Landwehr (andre.landwehr@gmx.net)
Fri, 28 Mar 2003 12:48:02 +0100


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-17072-1048852142-0001-2
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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/partition=
s/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 =3D 0;
p->reads =3D p->writes =3D p->read_sectors =3D p->write_sectors =3D 0;
devfs_unregister(p->de);
+ p->de =3D NULL;
kobject_unregister(&p->kobj);
}
=20

Have fun
Andre

--=_courier-17072-1048852142-0001-2
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+hDZxC3ZlGS1b0mMRAp9PAJ4hgLJE3dUiaaP4V6/P+V1VIel3FgCfczxa
IPBbaG2bE85bT2ZGrtOV2z0=
=9PLe
-----END PGP SIGNATURE-----

--=_courier-17072-1048852142-0001-2--