]> git.baikalelectronics.ru Git - kernel.git/commitdiff
fs/ntfs3: Change max hardlinks limit to 4000
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 9 Sep 2021 10:12:41 +0000 (13:12 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 21 Sep 2021 15:37:01 +0000 (18:37 +0300)
xfstest generic/041 works with 3003 hardlinks.
Because of this we raise hardlinks limit to 4000.
There are no drawbacks or regressions.
Theoretically we can raise all the way up to ffff,
but there is no practical use for this.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/ntfs.h

index 303a162c31587475adb8c3190b16fa451e9616a7..9cc396b117bfd9b02531ad6c6de89ded53bba7f3 100644 (file)
 
 #define NTFS_NAME_LEN 255
 
-/* ntfs.sys used 500 maximum links on-disk struct allows up to 0xffff. */
-#define NTFS_LINK_MAX 0x400
-//#define NTFS_LINK_MAX 0xffff
+/*
+ * ntfs.sys used 500 maximum links on-disk struct allows up to 0xffff.
+ * xfstest generic/041 creates 3003 hardlinks.
+ */
+#define NTFS_LINK_MAX 4000
 
 /*
  * Activate to use 64 bit clusters instead of 32 bits in ntfs.sys.