lkml.org 
[lkml]   [2003]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject2.4 IDE hotplug disk change and size change problem
Some people found that the

hdparm -b0
swap disk for a larger one
hdparm -b1

would then go nuts with disks IFF the new disk was larger and fdisk wasnt run.

Can folks seeing this try the following guess at the problem (I dont currently
have any hotpluggable IDE working except CD/DVD bays)


--- ide.c~ 2003-12-23 22:45:50.000000000 +0000
+++ ide.c 2003-12-23 22:51:26.000000000 +0000
@@ -826,7 +826,11 @@
for (unit = 0; unit < MAX_DRIVES; ++unit) {
ide_drive_t *drive = &hwif->drives[unit];
if(drive->present && !drive->dead)
+ {
+ drive->revalidate = 1;
ide_attach_drive(drive);
+ ide_revalidate_disk(MKDEV(hwif->major, unit<<PARTN_BITS));
+ }
}
our_drive->usage++;
return 0;

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.020 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site