Module Name:    src
Committed By:   martin
Date:           Sun May  6 16:58:31 UTC 2012

Modified Files:
        src/sys/rump/dev/lib/libscsitest: scsitest.c

Log Message:
Revert previous and add a comment - I misunderstood what this code is
emulating.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/rump/dev/lib/libscsitest/scsitest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/dev/lib/libscsitest/scsitest.c
diff -u src/sys/rump/dev/lib/libscsitest/scsitest.c:1.2 src/sys/rump/dev/lib/libscsitest/scsitest.c:1.3
--- src/sys/rump/dev/lib/libscsitest/scsitest.c:1.2	Sun May  6 16:33:02 2012
+++ src/sys/rump/dev/lib/libscsitest/scsitest.c	Sun May  6 16:58:31 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: scsitest.c,v 1.2 2012/05/06 16:33:02 martin Exp $	*/
+/*	$NetBSD: scsitest.c,v 1.3 2012/05/06 16:58:31 martin Exp $	*/
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsitest.c,v 1.2 2012/05/06 16:33:02 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsitest.c,v 1.3 2012/05/06 16:58:31 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -221,7 +221,10 @@ scsitest_match(struct device *parent, st
 	if ((isofd = rumpuser_open(MYCDISO, O_RDWR, &error)) == -1)
 		return 0;
 #else
-	isofd = -1;
+	/*
+	 * We pretend to have a medium present initially, so != -1.
+	 */
+	isofd = -2;
 #endif
 
 	return 1;

Reply via email to