From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 5 07:23:06 2004 Return-Path: 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 6CB0016A4CE for ; Fri, 5 Mar 2004 07:23:06 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB28443D2D for ; Fri, 5 Mar 2004 07:23:03 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i25FN2Od050092; Fri, 5 Mar 2004 09:23:02 -0600 (CST) (envelope-from dan) Date: Fri, 5 Mar 2004 09:23:02 -0600 From: Dan Nelson To: "Stephen J. Roznowski" Message-ID: <20040305152301.GB59014@dan.emsphone.com> References: <200403050330.i253UY7Q021188@istari.comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200403050330.i253UY7Q021188@istari.comcast.net> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: Reason for LINK_MAX set to 32K? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2004 15:23:06 -0000 In the last episode (Mar 04), Stephen J. Roznowski said: > Is there a technical reason why LINK_MAX is set to 32K? Would > anything bad happen if this value was raised? Mainly because di_nlink is an int16_t in ufs/dinode.h and ufs/inode.h. I think it could have been bumped up to an int32_t in UFS2, but it's probably too late now. You might be able to change it to a uint16_t to raise the limit to 64K, but I don't know if the kernel ever relies on a negative link count at any time. -- Dan Nelson dnelson@allantgroup.com