Blame SOURCES/0076-fs-ntfs3-Change-max-hardlinks-limit-to-4000.patch
|
Kmods SIG |
8b815c |
From 56eaeb10e2619081cc383febf6740a4c3e806777 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
8b815c |
From: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
|
|
Kmods SIG |
8b815c |
Date: Thu, 9 Sep 2021 13:12:41 +0300
|
|
Kmods SIG |
8b815c |
Subject: [Backport 56eaeb10e261] src: Change max hardlinks limit to 4000
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
xfstest generic/041 works with 3003 hardlinks.
|
|
Kmods SIG |
8b815c |
Because of this we raise hardlinks limit to 4000.
|
|
Kmods SIG |
8b815c |
There are no drawbacks or regressions.
|
|
Kmods SIG |
8b815c |
Theoretically we can raise all the way up to ffff,
|
|
Kmods SIG |
8b815c |
but there is no practical use for this.
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
|
|
Kmods SIG |
8b815c |
---
|
|
Kmods SIG |
8b815c |
src/ntfs.h | 8 +++++---
|
|
Kmods SIG |
8b815c |
1 file changed, 5 insertions(+), 3 deletions(-)
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
diff --git a/src/ntfs.h b/src/ntfs.h
|
|
Kmods SIG |
8b815c |
index 303a162c31587475adb8c3190b16fa451e9616a7..9cc396b117bfd9b02531ad6c6de89ded53bba7f3 100644
|
|
Kmods SIG |
8b815c |
--- a/src/ntfs.h
|
|
Kmods SIG |
8b815c |
+++ b/src/ntfs.h
|
|
Kmods SIG |
8b815c |
@@ -26,9 +26,11 @@
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
#define NTFS_NAME_LEN 255
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
-/* ntfs.sys used 500 maximum links on-disk struct allows up to 0xffff. */
|
|
Kmods SIG |
8b815c |
-#define NTFS_LINK_MAX 0x400
|
|
Kmods SIG |
8b815c |
-//#define NTFS_LINK_MAX 0xffff
|
|
Kmods SIG |
8b815c |
+/*
|
|
Kmods SIG |
8b815c |
+ * ntfs.sys used 500 maximum links on-disk struct allows up to 0xffff.
|
|
Kmods SIG |
8b815c |
+ * xfstest generic/041 creates 3003 hardlinks.
|
|
Kmods SIG |
8b815c |
+ */
|
|
Kmods SIG |
8b815c |
+#define NTFS_LINK_MAX 4000
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
/*
|
|
Kmods SIG |
8b815c |
* Activate to use 64 bit clusters instead of 32 bits in ntfs.sys.
|
|
Kmods SIG |
8b815c |
--
|
|
Kmods SIG |
8b815c |
2.31.1
|
|
Kmods SIG |
8b815c |
|