/* * If this device did not have media in the drive at boot time, then * we would have been unable to get the sector size.  Check to see if * this is the case, and try again. */ if (cd->needs_sector_size) get_sectorsize(cd); 
static int sr_open(struct cdrom_device_info *cdi, int purpose){	struct scsi_cd *cd = cdi->handle;	struct scsi_device *sdev = cd->device;	int retval;	/*	 * If the device is in error recovery, wait until it is done.	 * If the device is offline, then disallow any access to it.	 */	retval = -ENXIO;	if (!scsi_block_when_processing_errors(sdev))		goto error_out;	/*	 * If this device did not have media in the drive at boot time, then	 * we would have been unable to get the sector size.  Check to see if	 * this is the case, and try again.	 */	if (cd->needs_sector_size)		get_sectorsize(cd);	return 0;error_out:	return retval;	}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/51490c89f95b8581782e9baa855da166441852be/sr.c/clean/drivers/scsi/sr.c