Dear all. I'm trying to make some modifications to SCSI driver to correctly sync /proc/partitions when new disk is inserted. To revalidate disk I used sd_revalidate_disk(), but this function revalidate only disk info, but do not rescan partition table. How can I tell the driver to correctly rescan part/ table? I've tried to use rescan_partitions() function like below, but failed: struct scsi_disk *sdkp; bdev = bdget_disk(sdkp->disk, 0); rescan_partitions(sdkp->disk, bdev); But in this case bdev->bd_disk is NULL. Why? What did I do not correct? Thank for help. - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html