From b8a7b648d8f16999b00768d56f029b955c390eb7 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Sun, 21 Jun 2015 17:51:24 +0200 Subject: syncop: add seek() FOP Add the new seek() FOP to the syncop framework. gfapi will use this in the future. Change-Id: I0c15153beb27de73d5844b6f692175750fc28f60 BUG: 1220173 Singed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/11481 Smoke: Gluster Build System Tested-by: Niels de Vos NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Kaleb KEITHLEY --- libglusterfs/src/syncop.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libglusterfs/src/syncop.h') diff --git a/libglusterfs/src/syncop.h b/libglusterfs/src/syncop.h index 8afc68e7f21..1bad3506405 100644 --- a/libglusterfs/src/syncop.h +++ b/libglusterfs/src/syncop.h @@ -169,7 +169,9 @@ struct syncargs { pthread_mutex_t mutex; pthread_cond_t cond; int done; + gf_dirent_t entries; + off_t offset; }; struct syncopctx { @@ -511,4 +513,9 @@ int syncop_xattrop (xlator_t *subvol, loc_t *loc, gf_xattrop_flags_t flags, int syncop_fxattrop (xlator_t *subvol, fd_t *fd, gf_xattrop_flags_t flags, dict_t *dict, dict_t *xdata_in, dict_t **xdata_out); + +int +syncop_seek (xlator_t *subvol, fd_t *fd, off_t offset, gf_seek_what_t what, + dict_t *xdata_in, off_t *off); + #endif /* _SYNCOP_H */ -- cgit