From owner-freebsd-fs Wed Feb 28 12:54:23 2001 Delivered-To: freebsd-fs@freebsd.org Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (Postfix) with ESMTP id DDC9E37B719; Wed, 28 Feb 2001 12:54:14 -0800 (PST) (envelope-from tlambert@usr05.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.9.3/8.9.3) id NAA26639; Wed, 28 Feb 2001 13:47:50 -0700 (MST) Received: from usr05.primenet.com(206.165.6.205) via SMTP by smtp02.primenet.com, id smtpdAAAhKai.X; Wed Feb 28 13:45:30 2001 Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id NAA05663; Wed, 28 Feb 2001 13:51:44 -0700 (MST) From: Terry Lambert Message-Id: <200102282051.NAA05663@usr05.primenet.com> Subject: Re: mount fixes, part 1 To: adrian@FreeBSD.ORG (Adrian Chadd) Date: Wed, 28 Feb 2001 20:51:43 +0000 (GMT) Cc: freebsd-fs@FreeBSD.ORG, freebsd-arch@FreeBSD.ORG In-Reply-To: <20010228113644.A39251@roaming.cacheboy.net> from "Adrian Chadd" at Feb 28, 2001 11:36:44 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > It is my hope that eventually vfs_mount() and VFS_MOUNT() will not > use copyin*() at all. > > Comments are welcome. I'd like to commit this in the next couple of days > so I can continue with my VFS tidyups. Took a quick peek... I assume that this is to allow user space and kernel space code to be equivalent, for developing in user space? This works particularly well, because of descriptor calling for VOPs, less so for VFSOPs. Probably you will want to descriptorize the VFS switch entry points, and pass descriptors. Descriptors would have to be internalized, but that would happen outside the code, so it would eliminate "copyin*()" (I guess that sopinstr() is the worst of these, which is why you aren't using uio instead, even though uio in user space would take more work?). For this to work, you will need to seperate the mount creating a mounted file system list instance from the vnode covering, or you will find yourself unable to develop anything other than "VFS on top, VFS on bottom" modules in user space, and unable to mount more than one stacking layer deep. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message