PERFORCE change 162956 for review

Alexander Motin mav at FreeBSD.org
Thu May 28 17:50:51 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=162956

Change 162956 by mav at mav_mavbook on 2009/05/28 17:50:23

	Fix bug in ATAPI device INQUIRY.
	
	Now ATAPI works for me. I am able to detect my SATA Sony DVD-RW drive,
	record disk with growisofs via pass0 and read it back via cd0.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/ata/ata_xpt.c#8 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/ata/ata_xpt.c#8 (text+ko) ====

@@ -673,9 +673,7 @@
 
 			periph_qual = SID_QUAL(inq_buf);
 
-			switch(periph_qual) {
-			case SID_QUAL_LU_CONNECTED:
-			{
+			if (periph_qual == SID_QUAL_LU_CONNECTED) {
 				u_int8_t len;
 
 				/*
@@ -708,9 +706,6 @@
 				xpt_async(AC_FOUND_DEVICE, done_ccb->ccb_h.path,
 				    done_ccb);
 				xpt_release_ccb(done_ccb);
-				return;
-			}
-			default:
 				break;
 			}
 		} else if (cam_periph_error(done_ccb, 0,


More information about the p4-projects mailing list