From owner-freebsd-current@FreeBSD.ORG Sun Jun 1 18:47:58 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E0CF37B401; Sun, 1 Jun 2003 18:47:58 -0700 (PDT) Received: from perrin.int.nxad.com (internal.ext.nxad.com [69.1.70.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ECEC43FB1; Sun, 1 Jun 2003 18:47:58 -0700 (PDT) (envelope-from hmp@nxad.com) Received: by perrin.int.nxad.com (Postfix, from userid 1072) id A08B421058; Sun, 1 Jun 2003 18:47:57 -0700 (PDT) Date: Sun, 1 Jun 2003 18:47:57 -0700 From: Hiten Pandya To: current@FreeBSD.ORG Message-ID: <20030602014757.GA99626@perrin.int.nxad.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD FreeBSD 4.7-STABLE User-Agent: Mutt/1.5.4i cc: des@FreeBSD.ORG Subject: VFS: C99 sparse format for struct vfsops X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2003 01:47:58 -0000 Gang, My fingers have been itching to do this since the day phk@ planted this idea in my brain (re: cdevsw initialisations). Basically, it changes the vfsops to use C99 sparse format, just like cdevsw. It removes a lot of junk default initialisations, and duplication. Just like phk@ said in his mail for cdevsw; likewise, we wil be able to add new vfsops without having to hunt down each driver to match. Except this patch was "not" generated automatically. While there, I have also nuked all the prototypes for the vfsops, and replaced them with the typedefs, available in sys/mount.h, i.e. vfs__t. If this patch gets approved by some senior mac-daddies of FreeBSD, I can kindly ask my mentor, DES, to commit this for me. 8-) The patch: http://people.FreeBSD.ORG/~hmp/patches/vfs-voodoo.patch My mentor, and some other developers on secret IRC channel have given this a cursory glance. I am composing my email from a kernel running with this patch -- no rabbits, or hard disks were harmed in the making of this patch. Cheers. -- Hiten (hmp@FreeBSD.ORG)