From acdeed002d30209e0a058c2df0346d4f16c08994 Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Fri, 6 Aug 2010 05:31:45 +0000 Subject: add pump xlator and changes for replace-brick Signed-off-by: Pavan Vilas Sondur Signed-off-by: Anand V. Avati BUG: 1235 (Bug for all pump/migrate commits) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1235 --- libglusterfs/src/syncop.h | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'libglusterfs/src/syncop.h') diff --git a/libglusterfs/src/syncop.h b/libglusterfs/src/syncop.h index ce364b073..13b07ed31 100644 --- a/libglusterfs/src/syncop.h +++ b/libglusterfs/src/syncop.h @@ -76,6 +76,8 @@ struct syncargs { struct iatt iatt1; struct iatt iatt2; dict_t *xattr; + gf_dirent_t entries; + struct statvfs statvfs_buf; /* do not touch */ pthread_mutex_t mutex; @@ -134,10 +136,10 @@ struct syncargs { #define SYNCOP(subvol, stb, cbk, op, params ...) do { \ call_frame_t *frame = NULL; \ \ - frame = create_frame (THIS, THIS->ctx->pool); \ + frame = syncop_create_frame (); \ \ __yawn (stb); \ - STACK_WIND_COOKIE (frame, (void *)stb, cbk, subvol, op, params);\ + STACK_WIND_COOKIE (frame, cbk, (void *)stb, subvol, op, params);\ __yield (stb); \ } while (0) @@ -157,8 +159,23 @@ int syncop_lookup (xlator_t *subvol, loc_t *loc, dict_t *xattr_req, /* out */ struct iatt *iatt, dict_t **xattr_rsp, struct iatt *parent); +int syncop_readdirp (xlator_t *subvol, fd_t *fd, size_t size, off_t off, + /* out */ + gf_dirent_t *entries); + +int +syncop_opendir (xlator_t *subvol, + loc_t *loc, + fd_t *fd); + int syncop_setattr (xlator_t *subvol, loc_t *loc, struct iatt *iatt, int valid, /* out */ struct iatt *preop, struct iatt *postop); +int +syncop_statfs (xlator_t *subvol, loc_t *loc, struct statvfs *buf); + +int +syncop_setxattr (xlator_t *subvol, loc_t *loc, dict_t *dict, int32_t flags); + #endif /* _SYNCOP_H */ -- cgit