14f8ab
From 7221352670a750e35268573dba36c139a5041b14 Mon Sep 17 00:00:00 2001
14f8ab
From: Krutika Dhananjay <kdhananj@redhat.com>
14f8ab
Date: Fri, 3 May 2019 10:50:40 +0530
14f8ab
Subject: [PATCH 188/192] features/shard: Fix integer overflow in block count
14f8ab
 accounting
14f8ab
14f8ab
... by holding delta_blocks in 64-bit int as opposed to 32-bit int.
14f8ab
14f8ab
> Upstream: https://review.gluster.org/22655
14f8ab
> BUG: 1705884
14f8ab
> Change-Id: I2c1ddab17457f45e27428575ad16fa678fd6c0eb
14f8ab
14f8ab
Change-Id: I2c1ddab17457f45e27428575ad16fa678fd6c0eb
14f8ab
updates: bz#1668001
14f8ab
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
14f8ab
Reviewed-on: https://code.engineering.redhat.com/gerrit/173476
14f8ab
Tested-by: RHGS Build Bot <nigelb@redhat.com>
14f8ab
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
14f8ab
---
14f8ab
 xlators/features/shard/src/shard.h | 2 +-
14f8ab
 1 file changed, 1 insertion(+), 1 deletion(-)
14f8ab
14f8ab
diff --git a/xlators/features/shard/src/shard.h b/xlators/features/shard/src/shard.h
14f8ab
index 570fe46..cd6a663 100644
14f8ab
--- a/xlators/features/shard/src/shard.h
14f8ab
+++ b/xlators/features/shard/src/shard.h
14f8ab
@@ -275,7 +275,7 @@ typedef struct shard_local {
14f8ab
     size_t req_size;
14f8ab
     size_t readdir_size;
14f8ab
     int64_t delta_size;
14f8ab
-    int delta_blocks;
14f8ab
+    int64_t delta_blocks;
14f8ab
     loc_t loc;
14f8ab
     loc_t dot_shard_loc;
14f8ab
     loc_t dot_shard_rm_loc;
14f8ab
-- 
14f8ab
1.8.3.1
14f8ab