summaryrefslogtreecommitdiffstats
path: root/xlators/features/shard/src/shard.h
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2015-06-16 17:59:23 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-07-15 19:10:46 -0700
commit431565e35afea5d99931276d3f0599473d088b8a (patch)
tree43385dbc24a6ec057053cefb5f80e6cfc8f1a463 /xlators/features/shard/src/shard.h
parent539c11e424ce008579ab5a11da71028ba872a0a7 (diff)
features/shard: Use xattrop (as opposed to setxattr) for updates to size xattr
Change-Id: Icd8984976812bb47ae7129426f6c1aa9393b3ab9 BUG: 1232391 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/11467 Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/features/shard/src/shard.h')
-rw-r--r--xlators/features/shard/src/shard.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/features/shard/src/shard.h b/xlators/features/shard/src/shard.h
index a90162bf9be..2e2b3abd593 100644
--- a/xlators/features/shard/src/shard.h
+++ b/xlators/features/shard/src/shard.h
@@ -67,7 +67,7 @@
#define SHARD_INODE_CREATE_INIT(this, local, xattr_req, loc, label) do { \
int __ret = -1; \
- uint64_t *__size_attr = NULL; \
+ int64_t *__size_attr = NULL; \
shard_priv_t *__priv = NULL; \
\
__priv = this->private; \
@@ -155,6 +155,8 @@ typedef struct shard_local {
size_t hole_size;
size_t req_size;
size_t readdir_size;
+ int64_t delta_size;
+ int delta_blocks;
loc_t loc;
loc_t dot_shard_loc;
loc_t loc2;