* 2.4 IDE hotplug disk change and size change problem
@ 2003-12-23 23:01 Alan Cox
0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2003-12-23 23:01 UTC (permalink / raw)
To: linux-kernel
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-23 23:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-23 23:01 2.4 IDE hotplug disk change and size change problem Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox