From owner-freebsd-fs Wed Aug 7 16: 1:53 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 8551337B400 for ; Wed, 7 Aug 2002 16:01:51 -0700 (PDT) Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30B9D43E7B for ; Wed, 7 Aug 2002 16:01:51 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0264.cvx22-bradley.dialup.earthlink.net ([209.179.199.9] helo=mindspring.com) by falcon.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17cZoF-0007Qi-00; Wed, 07 Aug 2002 16:01:44 -0700 Message-ID: <3D51A6A3.87B90E3B@mindspring.com> Date: Wed, 07 Aug 2002 16:00:51 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "David E. Cross" Cc: fs@freebsd.org, guptar@cs.rpi.edu Subject: Re: vnodes (UFS journaling)? References: <200208072140.g77Le5C78847@monica.cs.rpi.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" wrote: > Ok, we've noticed an "unfortunate" side-effect of our work. We leak data > (part of the journal shows up in other files). I think it is because > of our handling of the vnode, and it being reused for other files (as > oppsoed to trashing memory, etc. The entries it writes in the files are > valid). We've tried _not_ calling vput(jvp) on it after the initial > open but then any access to the file hangs the kernel (in inode). How > can we say "don't reuse this" but allow other people to access it? Wow. This is an incredibly opaque question. The normal way you prevent reuse is "don't give it back to the system in the first place, and it won't get given to someone else *by* the system". The normal way you make someone's reference to it "stale" is "assign deadops to it". Under no circumstances should you give it back to the system while there are references to it at all. What is it that you are trying to do with the vnode? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message