svn commit: r269523 - head/sys/fs/ext2fs
Pedro F. Giffuni
pfg at FreeBSD.org
Mon Aug 4 16:41:07 UTC 2014
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
More information about the svn-src-all
mailing list