From owner-freebsd-hackers Fri Oct 24 11:24:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA09433 for hackers-outgoing; Fri, 24 Oct 1997 11:24:47 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.5.85]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA09423 for ; Fri, 24 Oct 1997 11:24:40 -0700 (PDT) (envelope-from tlambert@usr08.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.7/8.8.7) id LAA25397; Fri, 24 Oct 1997 11:24:16 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp04.primenet.com, id smtpd025394; Fri Oct 24 11:24:10 1997 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id LAA16384; Fri, 24 Oct 1997 11:24:05 -0700 (MST) From: Terry Lambert Message-Id: <199710241824.LAA16384@usr08.primenet.com> Subject: Re: zipfs filesystem anyone ? To: gurney_j@resnet.uoregon.edu Date: Fri, 24 Oct 1997 18:24:05 +0000 (GMT) Cc: tlambert@primenet.com, michaelh@cet.co.jp, luigi@labinfo.iet.unipi.it, hackers@FreeBSD.ORG In-Reply-To: <19971024105734.33600@hydrogen.nike.efn.org> from "John-Mark Gurney" at Oct 24, 97 10:57:34 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > The only real pain is extending the number of VOP's, should you need to... > > and that's going to bite you no matter how you approach it because the > > BSD VFS init code is broken (it counts the number of VOP's in the > > statically linked UFS instead of using the struct vnops descriptor count, > > with placeholders for some "reasonable number" of new VOPs). > > are you really sure about this? by my reading of the code in vfs_init.c > (and I've sent enough time looking at the code reciently), the size of the > opv table is vfs_opv_numops = sizeof(vfs_op_desc)/ > sizeof(struct vnodeop_desc*) -1... shouldn't this be enough? or am I > completely missreading the code? I haven't seen this; my home machine has been packed in a box on a truck and is still in the box, only now in my livingroom. This is, in fact, one of my VFS patches! Yea, team! If it's in there, then this is an important first step. The next step would be to add a special placeholder descriptor that can be replaced in vfs_op_desc for several slots. This would make it so you didn't have to rebuild all of vnode_if.c and vnode_if.h to add new descriptors: you can overwrite the placeholders instead. Actually, that particular change (not using FFS to size the table) is the first change in a chain that lets you boot a machine without a file system at all (my original purpose). 8-) 8-). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.