summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2017-11-15 04:08:18 +0100
committerShyamsundar Ranganathan <srangana@redhat.com>2017-11-30 14:26:39 +0000
commitbb201627fb70fc80901245c13748d0c101cb62aa (patch)
treefb8700c75c346f09ad55153cc34ca6abe8aa7f78
parent098a5ec1a30f69ec1bbea89f14b4a7a9212d5e20 (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: I17c12251d80dbb41b7d4864d5739d1ad3d6877a0 Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> BUG: 1513259
-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 5a285bcd7e7..1fe6dec457f 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -8063,7 +8063,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"},