From bf88dc3d2789b61b4c716b99080218b2507d6170 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 26 Jan 2016 23:49:24 +0100 Subject: 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 Reviewed-on: http://review.gluster.org/13294 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Kaleb KEITHLEY Reviewed-by: Jeff Darcy --- xlators/cluster/stripe/src/stripe.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 @@ -4275,6 +4275,17 @@ err: return 0; } +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) { @@ -5729,6 +5740,7 @@ struct xlator_fops fops = { .fallocate = stripe_fallocate, .discard = stripe_discard, .zerofill = stripe_zerofill, + .seek = stripe_seek, }; struct xlator_cbks cbks = { -- cgit