From d4c61c4fff1c9e8d32d84eb1a552c9070bdc2c6f Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Mon, 7 Nov 2011 16:32:10 +0530 Subject: stripe read: Wipe stat in reply to prevent truncated error. If the read request, does not fall to the subvolume with the largest file size set, then we never return the correct size. This leads to clients seeing a truncated file error. The work around is to wipe stat being returned as part of read call. Change-Id: I4e76d09d7919fd0be616fe140e08f89a0dbcc444 BUG: 3774 Reviewed-on: http://review.gluster.com/682 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- libglusterfs/src/common-utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs') diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index e4d30297002..272beee2d77 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -70,6 +70,8 @@ void trap (void); #define GEOREP "geo-replication" +#define WIPE(statp) do { typeof(*statp) z = {0,}; if (statp) *statp = z; } while (0) + enum _gf_boolean { _gf_false = 0, -- cgit