shithub: riscv

Download patch

ref: 12f7fc7a0874c568e147627ca043eff33be6188e
parent: fa769a8f9d2200387c9e76f059dab2e213a8a792
author: cinap_lenrek <[email protected]>
date: Sun Sep 20 10:54:49 EDT 2015

devsd: handle SYNCHRONIZE CACHE scsi commands as nops in sdfakescsi()

--- a/sys/src/9/port/devsd.c
+++ b/sys/src/9/port/devsd.c
@@ -1116,6 +1116,11 @@
 		*p++ = len;
 		r->rlen = p - (uchar*)r->data;
 		return sdsetsense(r, SDok, 0, 0, 0);
+
+	case 0x35:	/* synchronize cache */
+	case 0x91:
+		return sdsetsense(r, SDok, 0, 0, 0);
+
 	case 0x08:	/* read6 */
 	case 0x0a:	/* write6 */
 	case 0x28:	/* read10 */