LWN.net Logo

Re: Missing IDE partition 3 of 3 on 2.5.34?

From:  Alexander Viro <viro@math.psu.edu>
To:  Linus Torvalds <torvalds@transmeta.com>
Subject:  [PATCH] Re: Missing IDE partition 3 of 3 on 2.5.34?
Date:  Tue, 10 Sep 2002 09:42:03 -0400 (EDT)
Cc:  Helge Hafting <helgehaf@aitel.hist.no>, Rusty Russell <rusty@rustcorp.com.au>, Jens Axboe <axboe@suse.de>, andre@linux-ide.org, linux-kernel@vger.kernel.org



On Tue, 10 Sep 2002, Helge Hafting wrote:

> I see the same thing.  Both of my IDE drives comes up without
> the last partition. (Missing ide/host0/bus0/target0/lun0/part3
> and ide/host0/bus1/target0/lun0/part7, loosing /usr and /usr/src
> in my case.)
> 
> There's lots of updates in code that deals with partitions
> and devfs, I couldn't find anything obvious wrong though.

devfs side.  Fix:

--- C34/fs/partitions/check.c	Mon Sep  9 20:39:52 2002
+++ /tmp/check.c	Tue Sep 10 09:39:47 2002
@@ -327,7 +327,7 @@
 	devfs_auto_unregister(dev->disk_de, slave);
 	if (!(dev->flags & GENHD_FL_DEVFS))
 		devfs_auto_unregister (slave, dir);
-	for (part = 1, p++; part < max_p; part++, p++)
+	for (part = 1; part < max_p; part++, p++)
 		if (p->nr_sects)
 			devfs_register_partition(dev, part);
 #endif

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2002, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds