From owner-freebsd-fs@FreeBSD.ORG Mon Aug 4 04:58:25 2003 Return-Path: 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 B9AF537B404 for ; Mon, 4 Aug 2003 04:58:25 -0700 (PDT) Received: from comp.chem.msu.su (comp-ext.chem.msu.su [158.250.32.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id 533D143F3F for ; Mon, 4 Aug 2003 04:58:22 -0700 (PDT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.12.3p2/8.12.3) with ESMTP id h74BwJgb075362 for ; Mon, 4 Aug 2003 15:58:19 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.12.3p2/8.12.3/Submit) id h74BwJ0e075361 for fs@freebsd.org; Mon, 4 Aug 2003 15:58:19 +0400 (MSD) (envelope-from yar) Date: Mon, 4 Aug 2003 15:58:18 +0400 From: Yar Tikhiy To: fs@freebsd.org Message-ID: <20030804115818.GA68027@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.3i Subject: FFS addressing unit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2003 11:58:26 -0000 Hi there, While poring over in order to better understand the internals of FFS, I noticed that there is a number of comments in the file refering to a certain "filesystem address." There is also a macro named fsbtodb() for turning "filesystem block numbers into disk block addresses," according to its description. However, it seems to be the fragment size that actually serves as the filesystem addressing unit in all the relevant super-block fields, including fs_fsbtodb. Is my conclusion correct? If so, I'd rather clarify those comments, so new developers won't confuse fragments with blocks when doing RTFS. -- Yar