[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference cookie::mru

Title:MRU Internal Bug Reports
Moderator:COOKIE::STMARTIN
Created:Wed Sep 20 1995
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:346
Total number of notes:1175

326.0. "OP:LOW The VMS version of Test Unit Ready." by NABETH::alan (Dr. File System's Home for Wayward Inodes.) Tue Apr 15 1997 00:06

	When the VMS version of mrd_test_unit_ready(3mrd) fails as
	the result of something other than a SCSI error, it blindly
	returns MRD_STATUS_OS_ERROR.  I think it could safely be
	changed to return the mapped OS error in this case.

	This is probably a low risk change.

	The higher risk change, but one we should consider is to
	bring it in-line with the other operating system specific
	routines, least passing it a dev_status_t structure.  The
	only places it currently used are mrd_startup (*) and
	mrd_ready.
T.RTitleUserPersonal
Name
DateLines
326.1Close.NABETH::alanDr. File System's Home for Wayward Inodes.Tue Apr 15 1997 21:3225
	Both changes were fairly easy.  It simplied the mrd_ready
	TUR loop waiting for Port Accessed.  It also simplied the
	DSA case since its "TUR" equivalent can directly return
	the appropriate error code.  The summary of changes:

	o  Added dev_status to all test_unit_ready functions and
	   prototypes.

	o  Removed extra TURs from mrd_common after read element
	   status failures that didn't them (RES does it own
	   request sense calls).

	o  Removed an extra mrd_request_sense after the startup
	   TUR since the TUR does the Request Sense itself.

	o  Added an ASC/ASCQ check for the Port Accessed condition
	   to mrd_scsi_decode() that now returns MRD_STATUS_PORT_ACCESSED.

	o  Changed the mrd_ready() TUR loop to directly check the
	   status for MRD_STATUS_PORT_ACCESSED.  This made the loop
	   much simplier.

	o  Removed "dsa_sense" from the robot_info_t structure.

	o  The DSA Request Sense always returns MRD_STATUS_NO_SENSE.