summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2017-11-15 04:04:39 +0100
committerjiffin tony Thottan <jthottan@redhat.com>2017-12-08 14:38:57 +0000
commit7359ecec6a8919a15dc1ce3bef3ab99d0898414f (patch)
tree8c1a73a8d53675614576bd3a2b28c9340bfa4733
parentfd3448c4a70c0c4ed2b8053ebe5bbe4d261086ee (diff)
Disable gfid2path by default on NetBSD
NetBSD storage of extended attributes for UFS1 badly scales when the list of extended attributes names rises. gfid2path can add as many extended attributes names as we have files, hence we keep it disabled for performance sake. > Change-Id: Id77b5f5ceb4d5eba1b3362b4b9fc693450ffbc2b > Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> > BUG: 1129939 Change-Id: Id77b5f5ceb4d5eba1b3362b4b9fc693450ffbc2b Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> BUG: 1513258
-rw-r--r--xlators/storage/posix/src/posix.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index d858878d3e8..5775152632d 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -7967,7 +7967,18 @@ struct volume_options options[] = {
},
{ .key = {"gfid2path"},
.type = GF_OPTION_TYPE_BOOL,
+#ifdef __NetBSD__
+ /*
+ * NetBSD storage of extended attributes for UFS1 badly
+ * scales when the list of extended attributes names rises.
+ * This option can add as many extended attributes names
+ * as we have files, hence we keep it disabled for performance
+ * sake.
+ */
+ .default_value = "off",
+#else
.default_value = "on",
+#endif
.description = "Enable logging metadata for gfid to path conversion"
},
{ .key = {"gfid2path-separator"},