From owner-freebsd-questions@FreeBSD.ORG Sun Nov 9 18:32:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0824A1065673 for ; Sun, 9 Nov 2008 18:32:01 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id DE4CA8FC1D for ; Sun, 9 Nov 2008 18:31:59 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.2) with ESMTP id mA9IVoTY085981; Sun, 9 Nov 2008 19:31:50 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.2/Submit) with ESMTP id mA9IVnDP085978; Sun, 9 Nov 2008 19:31:49 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 9 Nov 2008 19:31:49 +0100 (CET) From: Wojciech Puchar To: Robert Huff In-Reply-To: <18711.2431.464472.977892@jerusalem.litteratus.org> Message-ID: <20081109192810.S85881@wojtek.tensor.gdynia.pl> References: <50261.1226194851@people.net.au> <20081109152835.N49145@wojtek.tensor.gdynia.pl> <18711.2431.464472.977892@jerusalem.litteratus.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: UFS2 limits X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Nov 2008 18:32:01 -0000 >> the limit is 32765, just because link count is 2 bytes wide and >> each subdir adds two to base directory. you have to change to 2 >> level hierarchy. > > Question (for anyone who has an informed opinion): > If there any technical reason that couldn't be expanded to 32 > bits? Or is it possible but not done for historical or > policy reasons, and if so what are they? > > looking at /usr/include/ufs/ufs/dinode.h - i see int64_t di_spare[3]; and i have really no idea why time uses as much as 8+4 bytes like that: ufs_time_t di_mtime; /* 40: Last modified time. */ int32_t di_mtimensec; /* 64: Last modified time. */ i think it is not a problem to make link count 32-bit, and - why "spare" space are not just used for more direct/indirect blocks