From owner-freebsd-fs Thu Aug 22 20:28:41 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 4C3A337B400 for ; Thu, 22 Aug 2002 20:28:40 -0700 (PDT) Received: from cs.rpi.edu (mumble.cs.rpi.edu [128.213.8.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9101943E4A for ; Thu, 22 Aug 2002 20:28:39 -0700 (PDT) (envelope-from guptar@cs.rpi.edu) Received: from jenolen.cs.rpi.edu (jenolen.cs.rpi.edu [128.213.12.42]) by cs.rpi.edu (8.9.3/8.9.3) with ESMTP id XAA22501; Thu, 22 Aug 2002 23:28:37 -0400 (EDT) Received: from localhost (guptar@localhost) by jenolen.cs.rpi.edu (8.11.6+Sun/8.9.3) with ESMTP id g7N3SbN09085; Thu, 22 Aug 2002 23:28:37 -0400 (EDT) X-Authentication-Warning: jenolen.cs.rpi.edu: guptar owned process doing -bs Date: Thu, 22 Aug 2002 23:28:37 -0400 (EDT) From: Rashim Gupta To: Cc: "David E. Cross" Subject: Block free question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Hi As you all know we are working on logging the FS metadata. We are stuck while we are trying to free a block . When we free a block, we need to write this block number into the log file. We are storing the handle to the journal file in the ufsmount structure, how do we get access to that in ffs_blkfree? We have available to us "struct fs *fs", but there doesn't seem to be a way to get back to the ufsmount from there. We also have struct vnode *devvp, but that points to the /dev/foo entry (devfs), so its not usefull. The last bits of information we have are the block-number and inode-number, which I don't see an easy O(reasonable) way to extract the ufsmount information. As a status update we have the following metadata operations mostly done: inodealloc, link, unlink, blockalloc. Rashim Gupta To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message