2.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 renamed from ide.c~ +4 -0
@@ -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 ;