Source-Changes-HG archive

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

[src/trunk]: src/sys/coda Add coda_pathconf() always returning EINVAL.



details:   https://anonhg.NetBSD.org/src/rev/6ca876a2f6e8
branches:  trunk
changeset: 942646:6ca876a2f6e8
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat Nov 14 11:42:05 2020 +0000

description:
Add coda_pathconf() always returning EINVAL.

diffstat:

 sys/coda/coda_vnops.c |  18 +++++++++++++++---
 sys/coda/coda_vnops.h |   3 ++-
 2 files changed, 17 insertions(+), 4 deletions(-)

diffs (63 lines):

diff -r 159a6ef5723a -r 6ca876a2f6e8 sys/coda/coda_vnops.c
--- a/sys/coda/coda_vnops.c     Sat Nov 14 11:41:29 2020 +0000
+++ b/sys/coda/coda_vnops.c     Sat Nov 14 11:42:05 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coda_vnops.c,v 1.112 2020/05/16 18:31:48 christos Exp $        */
+/*     $NetBSD: coda_vnops.c,v 1.113 2020/11/14 11:42:05 hannken Exp $ */
 
 /*
  *
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.112 2020/05/16 18:31:48 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.113 2020/11/14 11:42:05 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -134,7 +134,7 @@
     { &vop_strategy_desc, coda_strategy },     /* strategy */
     { &vop_print_desc, coda_vop_error },       /* print */
     { &vop_islocked_desc, coda_islocked },     /* islocked */
-    { &vop_pathconf_desc, coda_vop_error },    /* pathconf */
+    { &vop_pathconf_desc, coda_pathconf },     /* pathconf */
     { &vop_advlock_desc, coda_vop_nop },       /* advlock */
     { &vop_bwrite_desc, coda_vop_error },      /* bwrite */
     { &vop_seek_desc, genfs_seek },            /* seek */
@@ -1739,6 +1739,18 @@
     return genfs_islocked(v);
 }
 
+int
+coda_pathconf(void *v)
+{
+       struct vop_pathconf_args *ap = v;
+
+       switch (ap->a_name) {
+       default:
+               return EINVAL;
+       }
+       /* NOTREACHED */
+}
+
 /*
  * Given a device and inode, obtain a locked vnode.  One reference is
  * obtained and passed back to the caller.
diff -r 159a6ef5723a -r 6ca876a2f6e8 sys/coda/coda_vnops.h
--- a/sys/coda/coda_vnops.h     Sat Nov 14 11:41:29 2020 +0000
+++ b/sys/coda/coda_vnops.h     Sat Nov 14 11:42:05 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coda_vnops.h,v 1.16 2012/08/02 16:06:59 christos Exp $ */
+/*     $NetBSD: coda_vnops.h,v 1.17 2020/11/14 11:42:05 hannken Exp $  */
 
 /*
  *
@@ -74,6 +74,7 @@
 int coda_lock(void *);
 int coda_unlock(void *);
 int coda_islocked(void *);
+int coda_pathconf(void *);
 int coda_vop_error(void *);
 int coda_vop_nop(void *);
 int coda_getpages(void *);



Home | Main Index | Thread Index | Old Index