diff options
author | Xavier Hernandez <xhernandez@datalab.es> | 2015-07-01 18:52:42 +0200 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2016-02-05 05:03:15 -0800 |
commit | 10da9812d83425cb3f2cc8385f94b2a4537d348f (patch) | |
tree | 7b0f220940aa7b5719b73152a5d759cf10a511d9 /xlators/cluster/ec/src/ec.c | |
parent | cdcd3dc96b412967ba68a56aa2607d86365fbfe6 (diff) |
cluster/ec: add seek() FOP
BUG: 1220173
Change-Id: Iaa23ba81df4ee78ddaab1f96b3d926a563b4bb3d
Signed-off-by: Xavier Hernandez <xhernandez@datalab.es>
Reviewed-on: http://review.gluster.org/11494
Smoke: Gluster Build System <jenkins@build.gluster.com>
Tested-by: Niels de Vos <ndevos@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec.c')
-rw-r--r-- | xlators/cluster/ec/src/ec.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec.c b/xlators/cluster/ec/src/ec.c index e93ae4f86fb..aad24e4dab7 100644 --- a/xlators/cluster/ec/src/ec.c +++ b/xlators/cluster/ec/src/ec.c @@ -1157,6 +1157,15 @@ int32_t ec_gf_zerofill(call_frame_t * frame, xlator_t * this, fd_t * fd, return 0; } +int32_t ec_gf_seek(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset, + gf_seek_what_t what, dict_t *xdata) +{ + ec_seek(frame, this, -1, EC_MINIMUM_ONE, default_seek_cbk, NULL, fd, + offset, what, xdata); + + return 0; +} + int32_t ec_gf_forget(xlator_t * this, inode_t * inode) { uint64_t value = 0; @@ -1271,7 +1280,8 @@ struct xlator_fops fops = .fsetattr = ec_gf_fsetattr, .fallocate = ec_gf_fallocate, .discard = ec_gf_discard, - .zerofill = ec_gf_zerofill + .zerofill = ec_gf_zerofill, + .seek = ec_gf_seek }; struct xlator_cbks cbks = |