Module Name:    src
Committed By:   hannken
Date:           Sat Nov 14 11:42:05 UTC 2020

Modified Files:
        src/sys/coda: coda_vnops.c coda_vnops.h

Log Message:
Add coda_pathconf() always returning EINVAL.


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/sys/coda/coda_vnops.c
cvs rdiff -u -r1.16 -r1.17 src/sys/coda/coda_vnops.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/coda/coda_vnops.c
diff -u src/sys/coda/coda_vnops.c:1.112 src/sys/coda/coda_vnops.c:1.113
--- src/sys/coda/coda_vnops.c:1.112	Sat May 16 18:31:48 2020
+++ src/sys/coda/coda_vnops.c	Sat Nov 14 11:42:05 2020
@@ -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 @@ const struct vnodeopv_entry_desc coda_vn
     { &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 @@ coda_islocked(void *v)
     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.

Index: src/sys/coda/coda_vnops.h
diff -u src/sys/coda/coda_vnops.h:1.16 src/sys/coda/coda_vnops.h:1.17
--- src/sys/coda/coda_vnops.h:1.16	Thu Aug  2 16:06:59 2012
+++ src/sys/coda/coda_vnops.h	Sat Nov 14 11:42:05 2020
@@ -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_reclaim(void *);
 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 *);

Reply via email to