From owner-freebsd-fs Thu Nov 28 4:35:56 2002 Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A235537B401 for ; Thu, 28 Nov 2002 04:35:55 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65DAF43E4A for ; Thu, 28 Nov 2002 04:35:55 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 36AB6AE027; Thu, 28 Nov 2002 04:35:50 -0800 (PST) Date: Thu, 28 Nov 2002 04:35:50 -0800 From: Alfred Perlstein To: "David E. Cross" Cc: freebsd-fs@freebsd.org Subject: Re: openafs question Message-ID: <20021128123550.GM16066@elvis.mu.org> References: <200211281128.gASBS2g04424@monica.cs.rpi.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200211281128.gASBS2g04424@monica.cs.rpi.edu> User-Agent: Mutt/1.4i 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 * David E. Cross [021128 03:28] wrote: > I've been working on the FreeBSD-OpenAFS port, and I seem to be down to > one last bug; I know what it is, I am just having trouble getting the > solution to it. > > First a quick description of what the code is doing... It maintains its > own set of vnodes, outside of the system pool, which it populates with > data (these are NEVER gotten with getnewvnode(9)). The problem arises > when one of these is used, and then free'd. The system decides to insert > it into the global vnode cache and use it for things like UFS. This is > bad for 2 reasons: Have getnewvnode add a flag to the vnode noting that it's meant for the global list, otherwise store a "free()" callback in the vnode to be called? -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message