diff options
author | pfg <pfg@FreeBSD.org> | 2014-08-04 16:41:06 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2014-08-04 16:41:06 +0000 |
commit | 83f0bdc908f57f74685e6e770d45c6bc67070d78 (patch) | |
tree | 1f6a694e7c05b62662ef3bbd264cfd4a8a9e96c6 | |
parent | 1aebfbbf080f1487de07af157c3325645d98f9d9 (diff) | |
download | FreeBSD-src-83f0bdc908f57f74685e6e770d45c6bc67070d78.zip FreeBSD-src-83f0bdc908f57f74685e6e770d45c6bc67070d78.tar.gz |
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
-rw-r--r-- | sys/fs/ext2fs/ext2_dir.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_dir.h b/sys/fs/ext2fs/ext2_dir.h index 8d92882..5aed64c 100644 --- a/sys/fs/ext2fs/ext2_dir.h +++ b/sys/fs/ext2fs/ext2_dir.h @@ -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 |