summaryrefslogtreecommitdiffstats
path: root/xlators/features/shard
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2015-12-18 21:41:04 +0100
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-01-27 01:38:06 -0800
commit2ce3daa94066dcc77cdc6b54a31747b6c7c0c2fc (patch)
treeb152e5f19b6142b6f793e1780c72bce081290e66 /xlators/features/shard
parentce2c58d0fab517320059af7cea2e36e5cd246b6e (diff)
shard: add seek() FOP as not supported
For getting basic support for SEEK_DATA/SEEK_HOLE, sharding has not been implemented. Bug 1301647 has been filed to get this new feature in sharding as well. BUG: 1220173 Change-Id: I5c272855a21501ac31e1a5f4b68ed7245582c17c Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/13290 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: Krutika Dhananjay <kdhananj@redhat.com>
Diffstat (limited to 'xlators/features/shard')
-rw-r--r--xlators/features/shard/src/shard.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
index e46d4dc33ec..19a07d29562 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -4612,6 +4612,17 @@ shard_discard (call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
}
int32_t
+shard_seek (call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
+ gf_seek_what_t what, dict_t *xdata)
+{
+ /* TBD */
+ gf_msg (this->name, GF_LOG_INFO, ENOTSUP, SHARD_MSG_FOP_NOT_SUPPORTED,
+ "seek called on %s.", uuid_utoa (fd->inode->gfid));
+ SHARD_STACK_UNWIND (seek, frame, -1, ENOTSUP, 0, NULL);
+ return 0;
+}
+
+int32_t
mem_acct_init (xlator_t *this)
{
int ret = -1;
@@ -4801,6 +4812,7 @@ struct xlator_fops fops = {
.link = shard_link,
.unlink = shard_unlink,
.rename = shard_rename,
+ .seek = shard_seek,
};
struct xlator_cbks cbks = {