From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 13 18:25:02 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADC3416A41F for ; Sun, 13 Nov 2005 18:25:02 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44D5C43D46 for ; Sun, 13 Nov 2005 18:25:02 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id jADIP17r037616; Sun, 13 Nov 2005 10:25:01 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id jADIP1uJ037615; Sun, 13 Nov 2005 10:25:01 -0800 (PST) (envelope-from jmg) Date: Sun, 13 Nov 2005 10:25:01 -0800 From: John-Mark Gurney To: Joseph Koshy , freebsd Message-ID: <20051113182501.GN775@funkthat.com> Mail-Followup-To: Joseph Koshy , freebsd References: <84dead720511112135j435a3723ld15a9d993bbae9cc@mail.gmail.com> <20051113181759.GM775@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051113181759.GM775@funkthat.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: Subject: Re: UFS2 max limits? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2005 18:25:02 -0000 John-Mark Gurney wrote this message on Sun, Nov 13, 2005 at 10:17 -0800: > as for the file size, The approximate max can be calculated by > (blocksize / sizeof(ufs2_daddr_t)) ^ 3 * blocksize > the real max would add in addition: > (blocksize / sizeof(ufs2_daddr_t)) ^ 2 * blocksize + > (blocksize / sizeof(ufs2_daddr_t)) * blocksize + > 9 * blocksize ^ ack, I miss remebered, I knew I needed to check this before I sent the email: !!grep define.*N[DI]ADDR /usr/include/ufs/ufs/dinode.h #define NDADDR 12 /* Direct addresses in inode. */ #define NIADDR 3 /* Indirect addresses in inode. */ The 9 above should be 12... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."