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
-  Lines: 22
-  Date:
Thu Apr 13 22:50:32 2000
-  Orig file: 
v2.3.99-pre5/linux/drivers/ide/ide-disk.c
-  Orig date: 
Tue Apr 11 15:09:17 2000
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)