From 834efc91985b7a572e5acd9be463eb8ffdf3ba11 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 29 May 2009 16:09:05 +0000 Subject: unify getdents count reduced to 512 (from 1024) Thanks to Krishna for pointing this out. When a unify self-heal of large directory (directory with lot of entries) is done, the getdents_cbk used to fail because of new limit of buffer size (128KB). Noticed that earlier it used to streach upto 4MB, hence the value 1024 worked fine. By reducing it to 512, noticed, we can fit in well within 128KB limit, and hence unify self-heal goes through. Signed-off-by: Anand V. Avati --- xlators/cluster/unify/src/unify.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster/unify/src') diff --git a/xlators/cluster/unify/src/unify.h b/xlators/cluster/unify/src/unify.h index da2f1e93b29..965436db58e 100644 --- a/xlators/cluster/unify/src/unify.h +++ b/xlators/cluster/unify/src/unify.h @@ -35,7 +35,7 @@ #define ZR_UNIFY_BG_SELF_HEAL 2 /* Sometimes one should use completely random numbers.. its good :p */ -#define UNIFY_SELF_HEAL_GETDENTS_COUNT 1024 +#define UNIFY_SELF_HEAL_GETDENTS_COUNT 512 #define NS(xl) (((unify_private_t *)xl->private)->namespace) -- cgit