Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 May 2009 17:50:49 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 162956 for review
Message-ID:  <200905281750.n4SHonOX076922@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

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

Change 162956 by mav@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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905281750.n4SHonOX076922>