From owner-svn-src-head@FreeBSD.ORG Mon Aug 4 16:41:07 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8199A763 for ; Mon, 4 Aug 2014 16:41:07 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 51B452873 for ; Mon, 4 Aug 2014 16:41:07 +0000 (UTC) Received: from pfg (uid 1275) (envelope-from pfg@FreeBSD.org) id 5e19 by svn.freebsd.org (DragonFly Mail Agent v0.9+); Mon, 04 Aug 2014 16:41:07 +0000 From: Pedro F. Giffuni Date: Mon, 4 Aug 2014 16:41:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269523 - head/sys/fs/ext2fs X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53dfb7a3.5e19.37746e44@svn.freebsd.org> X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2014 16:41:07 -0000 Author: pfg Date: Mon Aug 4 16:41:06 2014 New Revision: 269523 URL: http://svnweb.freebsd.org/changeset/base/269523 Log: set EXT2_LINK_MAX to LINK_MAX In linux EXT4_LINK_MAX is now 64000. We can't really do that since i_nlink and va_nlink are signed so setting higher values is likely to cause trouble. This is a system limitation so set the EXT_LINK_MAX to what the system can handle. MFC after: 3 days Modified: head/sys/fs/ext2fs/ext2_dir.h Modified: head/sys/fs/ext2fs/ext2_dir.h ============================================================================== --- head/sys/fs/ext2fs/ext2_dir.h Mon Aug 4 16:32:08 2014 (r269522) +++ head/sys/fs/ext2fs/ext2_dir.h Mon Aug 4 16:41:06 2014 (r269523) @@ -72,7 +72,7 @@ struct ext2fs_direct_2 { /* * Maximal count of links to a file */ -#define EXT2_LINK_MAX 32000 +#define EXT2_LINK_MAX LINK_MAX /* * Ext2 directory file types. Only the low 3 bits are used. The