/* * If the disk changed, the capacity will now be different, * so we force a re-read of this information * Force 2048 for the sector size so that filesystems won't * be trying to use something that is too small if the disc * has changed. */ cd->needs_sector_size = 1; cd->device->sector_size = 2048; 
get_sectorsize(cd); 
int sr_media_change(struct cdrom_device_info *cdi, int slot){	struct scsi_cd *cd = cdi->handle;	int retval;	if (CDSL_CURRENT != slot) {		/* no changer support */		return -EINVAL;	}	retval = scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES);	if (retval) {		/* Unable to test, unit probably not ready.  This usually		 * means there is no disc in the drive.  Mark as changed,		 * and we will figure it out later once the drive is		 * available again.  */		cd->device->changed = 1;		return 1;	/* This will force a flush, if called from				 * check_disk_change */	};	retval = cd->device->changed;	cd->device->changed = 0;	/* If the disk changed, the capacity will now be different,	 * so we force a re-read of this information */	if (retval) {		/* check multisession offset etc */		sr_cd_check(cdi);		/* 		 * If the disk changed, the capacity will now be different,		 * so we force a re-read of this information 		 * Force 2048 for the sector size so that filesystems won't		 * be trying to use something that is too small if the disc		 * has changed.		 */		cd->needs_sector_size = 1;		cd->device->sector_size = 2048;	}	return retval;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/51490c89f95b8581782e9baa855da166441852be/sr.c/clean/drivers/scsi/sr.c