From owner-freebsd-arch Wed Feb 28 2:36:20 2001 Delivered-To: freebsd-arch@freebsd.org Received: from roaming.cacheboy.net (node16292.a2000.nl [24.132.98.146]) by hub.freebsd.org (Postfix) with ESMTP id 87A1C37B719; Wed, 28 Feb 2001 02:35:52 -0800 (PST) (envelope-from adrian@roaming.cacheboy.net) Received: (from adrian@localhost) by roaming.cacheboy.net (8.11.1/8.11.1) id f1SAaiO39313; Wed, 28 Feb 2001 11:36:44 +0100 (CET) (envelope-from adrian) Date: Wed, 28 Feb 2001 11:36:44 +0100 From: Adrian Chadd To: freebsd-fs@freebsd.org Cc: freebsd-arch@freebsd.org Subject: mount fixes, part 1 Message-ID: <20010228113644.A39251@roaming.cacheboy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm running through and tidying up the mount interface, as promised. My first set of patches aren't yet complete (there is at least one documented strncpy() I have to fix up). I am attempting to rework the VFS_MOUNT() vfsop to take kernel pointers, rather than userland pointers. This will reduce the complexity by removing the copyin*() functions and allow "other" syscall interfaces to be used (eg linux, osf/1..) jlemon did some initial work on this, but I've gone and redone his work. I've moved the bulk of the mount process into a function called vfs_mount(). mount() and the linux mount() use this function to mount a filesystem. It is up to the syscall itself to worry about copyin*()ing. Note that the mount data pointer is still a user pointer - fixing this will require a *lot* more work, possibly by replacing it by a set of sbufs or a set of attrib=value strings. 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. You can find my patch at http://people.freebsd.org/~adrian/mount.diff . Note that I _will_ get to fixing the umount issues raised by mbr and rwatson, but I want to get this set fixed first. Thanks! Adrian -- Adrian Chadd "Programming is like sex: One mistake and you have to support for a lifetime." -- rec.humor.funny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message