summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/stripe
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2016-01-26 23:49:24 +0100
committerJeff Darcy <jdarcy@redhat.com>2016-02-04 09:29:24 -0800
commitbf88dc3d2789b61b4c716b99080218b2507d6170 (patch)
tree9dddfa2b8329c2a149fb81cb7e4f0f6d3016df8e /xlators/cluster/stripe
parentc58f9ce4eefa62ab0ae78d318e443486c4f80a54 (diff)
stripe: add seek() FOP as not supported
For getting basic support for SEEK_DATA/SEEK_HOLE, striping has not been implemented. Bug 1302149 has been filed to get this new feature in stripe as well. Change-Id: I9cfed795737609120eafe86f9287d79057b14fe2 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/13294 Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/cluster/stripe')
-rw-r--r--xlators/cluster/stripe/src/stripe.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c
index 78479129620..f6c3ea4e612 100644
--- a/xlators/cluster/stripe/src/stripe.c
+++ b/xlators/cluster/stripe/src/stripe.c
@@ -4276,6 +4276,17 @@ err:
}
int32_t
+stripe_seek (call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
+ gf_seek_what_t what, dict_t *xdata)
+{
+ /* TBD */
+ gf_log (this->name, GF_LOG_INFO, "seek called on %s.",
+ uuid_utoa (fd->inode->gfid));
+ STRIPE_STACK_UNWIND (seek, frame, -1, ENOTSUP, 0, NULL);
+ return 0;
+}
+
+int32_t
stripe_release (xlator_t *this, fd_t *fd)
{
return 0;
@@ -5729,6 +5740,7 @@ struct xlator_fops fops = {
.fallocate = stripe_fallocate,
.discard = stripe_discard,
.zerofill = stripe_zerofill,
+ .seek = stripe_seek,
};
struct xlator_cbks cbks = {