patch-2.3.99-pre6 linux/drivers/ide/ide-disk.c

Next file: linux/drivers/ide/ide-dma.c
Previous file: linux/drivers/ide/ide-cd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/drivers/ide/ide-disk.c linux/drivers/ide/ide-disk.c
@@ -512,6 +512,13 @@
 	return drive->removable;	/* if removable, always assume it was changed */
 }
 
+static void idedisk_revalidate (ide_drive_t *drive)
+{
+	grok_partitions(HWIF(drive)->gd, drive->select.b.unit,
+			1<<PARTN_BITS,
+			current_capacity(drive));
+}
+
 /*
  * Compute drive->capacity, the full capacity of the drive
  * Called with drive->id != NULL.
@@ -726,6 +733,7 @@
 	idedisk_open,		/* open */
 	idedisk_release,	/* release */
 	idedisk_media_change,	/* media_change */
+	idedisk_revalidate,	/* revalidate */
 	idedisk_pre_reset,	/* pre_reset */
 	idedisk_capacity,	/* capacity */
 	idedisk_special,	/* special */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)