From owner-freebsd-fs Wed Aug 7 22:46:30 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 49B7037B400 for ; Wed, 7 Aug 2002 22:46:29 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EF1143E4A for ; Wed, 7 Aug 2002 22:46:28 -0700 (PDT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id C73ADAE162; Wed, 7 Aug 2002 22:46:27 -0700 (PDT) Date: Wed, 7 Aug 2002 22:46:27 -0700 From: Alfred Perlstein To: Rashim Gupta Cc: Terry Lambert , "David E. Cross" , fs@freebsd.org Subject: Re: vnodes (UFS journaling)? Message-ID: <20020808054627.GE10953@elvis.mu.org> References: <3D51A6A3.87B90E3B@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i 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 * Rashim Gupta [020807 17:38] wrote: > > > we are trying to implement a logging facility for the File System. Hence > we need to open the log file and keep its vnode open throughout the > duration while the system is mounted. Hence, we cannot free the vnode > after searching for it using the root file system since we need to access > it later on. However, if we do not > return the vnode, then doing an "ls -al" in the dirctory where the log > file is present hangs the kernel. > > Any suggestions how we can solve this problem. Are you sure you're not leaving the vnode locked? Several vnode operations are not symmetrical, meaning that they may return a locked vnode or unlock a locked one, perhaps you are missing a VOP_UNLOCK somewhere? -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message