From owner-freebsd-fs Sun Sep 12 2:58:57 1999 Delivered-To: freebsd-fs@freebsd.org Received: from mail.du.gtn.com (mail.du.gtn.com [194.77.9.57]) by hub.freebsd.org (Postfix) with ESMTP id 1DC1A1525C for ; Sun, 12 Sep 1999 02:58:54 -0700 (PDT) (envelope-from ticso@cicely8.cicely.de) Received: from mail.cicely.de (cicely.de [194.231.9.142]) by mail.du.gtn.com (8.9.3/8.9.3) with ESMTP id LAA03064 for ; Sun, 12 Sep 1999 11:58:05 +0200 (MET DST) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by mail.cicely.de (8.9.0/8.9.0) with ESMTP id LAA68935 for ; Sun, 12 Sep 1999 11:59:07 +0200 (CEST) Received: (from ticso@localhost) by cicely8.cicely.de (8.9.3/8.9.2) id LAA37722 for freebsd-fs@freebsd.org; Sun, 12 Sep 1999 11:59:04 +0200 (CEST) (envelope-from ticso) Date: Sun, 12 Sep 1999 11:59:04 +0200 From: Bernd Walter To: freebsd-fs@freebsd.org Subject: FFS-questions Message-ID: <19990912115904.A37697@cicely8.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I thought that a directory always contains full blocks and never contain a fragment. Now I have the following situation: dirsize = 512, fragsize = 1024, blocksize = 4096 The dirrectory contains including . and .. 5 Entries. It seems to me that the size of a directory is always a multiple of 512. My problem is that I need to know how big the last datareference of a given inode is: How many frags does it contain or is the last reference a complete block. Another problem might be the situation if the fs is mounted: AFAIK FFS allocates complete blocks (or clusters?) in case the file gets bigger. I can't find out if it's a block or a couple of frags depending on the ino->di_size. Is there a relyable way for doing such things? Do I still have any missunderstandings about fileendings? -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message