Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dkwedge d_psize routine returns a number of blocks o...
details: https://anonhg.NetBSD.org/src/rev/4a2af5524cb9
branches: trunk
changeset: 751533:4a2af5524cb9
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Feb 07 16:04:31 2010 +0000
description:
d_psize routine returns a number of blocks or -1 on error.
d_dump routine returns 0 or an error code.
diffstat:
sys/dev/dkwedge/dk.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 8864cb64de5a -r 4a2af5524cb9 sys/dev/dkwedge/dk.c
--- a/sys/dev/dkwedge/dk.c Sun Feb 07 15:51:28 2010 +0000
+++ b/sys/dev/dkwedge/dk.c Sun Feb 07 16:04:31 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dk.c,v 1.54 2010/01/25 14:51:03 mlelstv Exp $ */
+/* $NetBSD: dk.c,v 1.55 2010/02/07 16:04:31 mlelstv Exp $ */
/*-
* Copyright (c) 2004, 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.54 2010/01/25 14:51:03 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.55 2010/02/07 16:04:31 mlelstv Exp $");
#ifdef _KERNEL_OPT
#include "opt_dkwedge.h"
@@ -1369,7 +1369,7 @@
return (-1);
if (sc->sc_state != DKW_STATE_RUNNING)
- return (ENXIO);
+ return (-1);
mutex_enter(&sc->sc_dk.dk_openlock);
mutex_enter(&sc->sc_parent->dk_rawlock);
@@ -1403,7 +1403,7 @@
int rv = 0;
if (sc == NULL)
- return (-1);
+ return (ENXIO);
if (sc->sc_state != DKW_STATE_RUNNING)
return (ENXIO);
Home |
Main Index |
Thread Index |
Old Index