From owner-freebsd-fs Fri Dec 7 13:26:42 2001 Delivered-To: freebsd-fs@freebsd.org Received: from po10.andrew.cmu.edu (PO10.ANDREW.CMU.EDU [128.2.10.110]) by hub.freebsd.org (Postfix) with ESMTP id 8E52137B405 for ; Fri, 7 Dec 2001 13:25:58 -0800 (PST) Received: (from postman@localhost) by po10.andrew.cmu.edu (8.9.3/8.9.3) id QAA00971 for freebsd-fs@freebsd.org; Fri, 7 Dec 2001 16:25:32 -0500 (EST) Received: via switchmail; Fri, 7 Dec 2001 16:25:31 -0500 (EST) Received: from sphinx.andrew.cmu.edu via qmail ID ; Fri, 7 Dec 2001 16:25:07 -0500 (EST) Received: from sphinx.andrew.cmu.edu via qmail ID ; Fri, 7 Dec 2001 16:25:07 -0500 (EST) Received: from mms.4.60.Jul.16.2001.15.18.20.i386.Linux.22.EzMail.2.0.CUILIB.3.45.SNAP.NOT.LINKED.sphinx.andrew.cmu.edu.i386.linux22 via MS.5.6.sphinx.andrew.cmu.edu.i386_Linux_22; Fri, 7 Dec 2001 16:25:07 -0500 (EST) Message-ID: Date: Fri, 7 Dec 2001 16:25:07 -0500 (EST) From: Chaskiel M Grundman To: freebsd-fs@freebsd.org Subject: openafs and mmap Cc: Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I currently have a partially- to mostly-working version of OpenAFS for freebsd 4.x (I'm working with 4.4. hopefully vm will be mostly compatible with other 4.x's) My biggest current problem is that mmap isn't working. cp seems to use mmap, and it always ends up creating a file full of nulls. It appears as though my getpages function is never being called, even though it seems to be properly listed in my vnodeopv_entry_desc (and my other vnodeops do get called) source can be viewed at http://www.contrib.andrew.cmu.edu/~cg2v/freebsd-openafs The interesting files here are osi_vnodeops.c and osi_module.c (which does initialization; I know that what osi_module.c does is non-standard, but I can't think of any other way to prevent the filesystem code from registering if the syscall installation fails) The afs_vop_read and afs_vop_getpages files are extracted copies of those particular vnode ops, to make it easier to examine them. Any help will be appreciated. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message