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 Revert previous and add a comme...



details:   https://anonhg.NetBSD.org/src/rev/d48013c13200
branches:  trunk
changeset: 779145:d48013c13200
user:      martin <martin%NetBSD.org@localhost>
date:      Sun May 06 16:58:31 2012 +0000

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

diffstat:

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

diffs (30 lines):

diff -r 2e45777cae12 -r d48013c13200 sys/rump/dev/lib/libscsitest/scsitest.c
--- a/sys/rump/dev/lib/libscsitest/scsitest.c   Sun May 06 16:42:19 2012 +0000
+++ b/sys/rump/dev/lib/libscsitest/scsitest.c   Sun May 06 16:58:31 2012 +0000
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index