Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 2014 16:41:07 +0000 (UTC)
From:      Pedro F. Giffuni <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269523 - head/sys/fs/ext2fs
Message-ID:  <53dfb7a3.5e19.37746e44@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53dfb7a3.5e19.37746e44>