Messages in this thread Patch in this message | | | Date | Tue, 23 Dec 2003 18:01:20 -0500 | From | Alan Cox <> | Subject | 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~ 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/
| |