Coda File System

Re: freebsd 4.3-stable unimplemented vnop

From: Greg Troxel <gdt_at_fnord.ir.bbn.com>
Date: 09 Jun 2001 20:09:28 -0400
I read some FreeBSD kernel code, and it seems there is a standard
implementation of these calls that other vfs implementations use.
With the following patch, I get no more warnings, and coda seems to
work (but I only have used it 5 minutes since).

I don't understand how vobjects are used, or why they showed up
between 4.2 and 4.3.


Index: sys/coda/coda_vnops.c
===================================================================
RCS file: /FREEBSD-CVS/src/sys/coda/coda_vnops.c,v
retrieving revision 1.22
diff -u -u -r1.22 coda_vnops.c
--- coda_vnops.c	1999/12/15 23:01:33	1.22
+++ coda_vnops.c	2001/06/10 00:06:20
@@ -146,6 +146,9 @@
     { &vop_poll_desc, (vop_t *) vop_stdpoll },
     { &vop_getpages_desc, coda_fbsd_getpages },	/* pager intf.*/
     { &vop_putpages_desc, coda_fbsd_putpages },	/* pager intf.*/
+	{ &vop_createvobject_desc,	(vop_t *) vop_stdcreatevobject },
+	{ &vop_destroyvobject_desc,	(vop_t *) vop_stddestroyvobject },
+	{ &vop_getvobject_desc,		(vop_t *) vop_stdgetvobject },
 
 #if	0
Received on 2001-06-09 20:09:53