Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/puffs Need to send protocol layer response instead of...



details:   https://anonhg.NetBSD.org/src/rev/6cbcf0f90efe
branches:  trunk
changeset: 749761:6cbcf0f90efe
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Dec 07 15:51:52 2009 +0000

description:
Need to send protocol layer response instead of transport layer
return value.  While there, just collapse all non-supported types
into one entry.

diffstat:

 sys/fs/puffs/puffs_msgif.c |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (33 lines):

diff -r a3c313e2e6bb -r 6cbcf0f90efe sys/fs/puffs/puffs_msgif.c
--- a/sys/fs/puffs/puffs_msgif.c        Mon Dec 07 14:23:45 2009 +0000
+++ b/sys/fs/puffs/puffs_msgif.c        Mon Dec 07 15:51:52 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puffs_msgif.c,v 1.74 2009/11/05 19:42:44 pooka Exp $   */
+/*     $NetBSD: puffs_msgif.c,v 1.75 2009/12/07 15:51:52 pooka Exp $   */
 
 /*
  * Copyright (c) 2005, 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puffs_msgif.c,v 1.74 2009/11/05 19:42:44 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puffs_msgif.c,v 1.75 2009/12/07 15:51:52 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -863,13 +863,9 @@
                DPRINTF(("dispatch: flush 0x%x\n", preq->preq_optype));
                puffsop_flush(pmp, (struct puffs_flush *)preq);
                break;
-       case PUFFSOP_SUSPEND:
-               DPRINTF(("dispatch: suspend\n"));
-               rv = EOPNOTSUPP;
-               break;
        default:
                DPRINTF(("dispatch: invalid class 0x%x\n", preq->preq_opclass));
-               puffs_msg_sendresp(pmp, preq, EINVAL);
+               puffs_msg_sendresp(pmp, preq, EOPNOTSUPP);
                break;
        }
 



Home | Main Index | Thread Index | Old Index