On Wed, Apr 11, 2007 at 12:23:13AM +0100, Alan Cox wrote: > @@ -3341,6 +3545,11 @@ static int ata_dev_same_device(struct at > "%llu != %llu\n", > (unsigned long long)dev->n_sectors, > (unsigned long long)new_n_sectors); > + /* Are we the boot time size - if so we appear to be the > + same disk at this point and our HPA got reapplied */ > + if (ata_ignore_hpa && dev->n_sectors_boot == new_n_sectors > + && ata_id_hpa_enabled(new_id)) > + return 1; > return 0; Instead of storing the n_sectors_boot, would it not be sufficient to attempt ata_hpa_resize, and compare dev->n_sectors with the result? (Or even just redo the read_native_max command to check it?) Cheers, Kyle M. - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html