Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/dev/lib/libscsitest If we are not delivering a host...



details:   https://anonhg.NetBSD.org/src/rev/edd6b1a6f9ce
branches:  trunk
changeset: 779143:edd6b1a6f9ce
user:      martin <martin%NetBSD.org@localhost>
date:      Sun May 06 16:33:02 2012 +0000

description:
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.

diffstat:

 sys/rump/dev/lib/libscsitest/scsitest.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 24ab365729ad -r edd6b1a6f9ce sys/rump/dev/lib/libscsitest/scsitest.c
--- a/sys/rump/dev/lib/libscsitest/scsitest.c   Sun May 06 07:28:48 2012 +0000
+++ b/sys/rump/dev/lib/libscsitest/scsitest.c   Sun May 06 16:33:02 2012 +0000
@@ -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 @@
        if ((isofd = rumpuser_open(MYCDISO, O_RDWR, &error)) == -1)
                return 0;
 #else
-       isofd = -2;
+       isofd = -1;
 #endif
 
        return 1;



Home | Main Index | Thread Index | Old Index