summaryrefslogtreecommitdiffstats
path: root/xlators/features/shard/src/shard.h
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2015-04-25 18:50:46 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-05-05 18:44:23 -0700
commitebf068c4ca4cfe7abcf56a816de7561130ffabf7 (patch)
tree9ee581ee8727c5610489d15c0e2f4e281dc910bf /xlators/features/shard/src/shard.h
parentfa0ad231745846918b2625d0e1a89c0a5c3c24dc (diff)
features/shard: Implement readv() fop
Change-Id: I4cc060710482de8633141170dd35f669f01f639b BUG: 1207615 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/10528 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/features/shard/src/shard.h')
-rw-r--r--xlators/features/shard/src/shard.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/features/shard/src/shard.h b/xlators/features/shard/src/shard.h
index 365616c108c..09af56a17ca 100644
--- a/xlators/features/shard/src/shard.h
+++ b/xlators/features/shard/src/shard.h
@@ -135,6 +135,9 @@ typedef int32_t (*shard_post_resolve_fop_handler_t) (call_frame_t *frame,
typedef int32_t (*shard_post_lookup_shards_fop_handler_t) (call_frame_t *frame,
xlator_t *this);
+typedef int32_t (*shard_post_mknod_fop_handler_t) (call_frame_t *frame,
+ xlator_t *this);
+
typedef struct shard_local {
int op_ret;
int op_errno;
@@ -152,6 +155,7 @@ typedef struct shard_local {
size_t total_size;
size_t written_size;
size_t hole_size;
+ size_t req_size;
loc_t loc;
loc_t dot_shard_loc;
loc_t loc2;
@@ -169,8 +173,11 @@ typedef struct shard_local {
struct iatt postnewparent;
struct iovec *vector;
struct iobref *iobref;
+ struct iobuf *iobuf;
shard_post_fop_handler_t handler;
shard_post_lookup_shards_fop_handler_t pls_fop_handler;
+ shard_post_resolve_fop_handler_t post_res_handler;
+ shard_post_mknod_fop_handler_t post_mknod_handler;
struct {
int lock_count;
fop_inodelk_cbk_t inodelk_cbk;