Module Name:    src
Committed By:   martin
Date:           Sun May  6 16:33:02 UTC 2012

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

Log Message:
If we are not delivering a host iso file (USE_TOSI_ISO is undefined), use
-1 as file descriptor initially. The -2 value confused a few other checks
later and led to inconsistent "media present" reports.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 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.1 src/sys/rump/dev/lib/libscsitest/scsitest.c:1.2
--- src/sys/rump/dev/lib/libscsitest/scsitest.c:1.1	Tue Aug 24 11:23:35 2010
+++ src/sys/rump/dev/lib/libscsitest/scsitest.c	Sun May  6 16:33:02 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: scsitest.c,v 1.1 2010/08/24 11:23:35 pooka Exp $	*/
+/*	$NetBSD: scsitest.c,v 1.2 2012/05/06 16:33:02 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.1 2010/08/24 11:23:35 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsitest.c,v 1.2 2012/05/06 16:33:02 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -221,7 +221,7 @@ scsitest_match(struct device *parent, st
 	if ((isofd = rumpuser_open(MYCDISO, O_RDWR, &error)) == -1)
 		return 0;
 #else
-	isofd = -2;
+	isofd = -1;
 #endif
 
 	return 1;

Reply via email to