summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/call-stub.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-10-01 06:58:47 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-01 07:22:46 -0700
commite11d66c8d6dea72d02f9bcdbf65c67bd5c60b5cc (patch)
treeffa96a3f78b79db2704a5bc410174714fd66fa67 /libglusterfs/src/call-stub.h
parent186a86f342625a9dce53fe537f8237c6099d5c54 (diff)
Global: NFS-friendly prototype changes
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 145 (NFSv3 related additions to 2.1 task list) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=145
Diffstat (limited to 'libglusterfs/src/call-stub.h')
-rw-r--r--libglusterfs/src/call-stub.h88
1 files changed, 70 insertions, 18 deletions
diff --git a/libglusterfs/src/call-stub.h b/libglusterfs/src/call-stub.h
index 63439478cc4..88e26c24f72 100644
--- a/libglusterfs/src/call-stub.h
+++ b/libglusterfs/src/call-stub.h
@@ -48,6 +48,7 @@ typedef struct {
inode_t *inode;
struct stat buf;
dict_t *dict;
+ struct stat postparent;
} lookup_cbk;
/* stat */
@@ -131,7 +132,8 @@ typedef struct {
struct {
fop_truncate_cbk_t fn;
int32_t op_ret, op_errno;
- struct stat buf;
+ struct stat prebuf;
+ struct stat postbuf;
} truncate_cbk;
/* ftruncate */
@@ -143,7 +145,8 @@ typedef struct {
struct {
fop_ftruncate_cbk_t fn;
int32_t op_ret, op_errno;
- struct stat buf;
+ struct stat prebuf;
+ struct stat postbuf;
} ftruncate_cbk;
/* utimens */
@@ -179,6 +182,7 @@ typedef struct {
fop_readlink_cbk_t fn;
int32_t op_ret, op_errno;
const char *buf;
+ struct stat sbuf;
} readlink_cbk;
/* mknod */
@@ -193,6 +197,8 @@ typedef struct {
int32_t op_ret, op_errno;
inode_t *inode;
struct stat buf;
+ struct stat preparent;
+ struct stat postparent;
} mknod_cbk;
/* mkdir */
@@ -206,6 +212,8 @@ typedef struct {
int32_t op_ret, op_errno;
inode_t *inode;
struct stat buf;
+ struct stat preparent;
+ struct stat postparent;
} mkdir_cbk;
/* unlink */
@@ -216,6 +224,8 @@ typedef struct {
struct {
fop_unlink_cbk_t fn;
int32_t op_ret, op_errno;
+ struct stat preparent;
+ struct stat postparent;
} unlink_cbk;
/* rmdir */
@@ -226,6 +236,8 @@ typedef struct {
struct {
fop_rmdir_cbk_t fn;
int32_t op_ret, op_errno;
+ struct stat preparent;
+ struct stat postparent;
} rmdir_cbk;
/* symlink */
@@ -239,6 +251,8 @@ typedef struct {
int32_t op_ret, op_errno;
inode_t *inode;
struct stat buf;
+ struct stat preparent;
+ struct stat postparent;
} symlink_cbk;
/* rename */
@@ -251,6 +265,10 @@ typedef struct {
fop_rename_cbk_t fn;
int32_t op_ret, op_errno;
struct stat buf;
+ struct stat preoldparent;
+ struct stat postoldparent;
+ struct stat prenewparent;
+ struct stat postnewparent;
} rename_cbk;
/* link */
@@ -264,6 +282,8 @@ typedef struct {
int32_t op_ret, op_errno;
inode_t *inode;
struct stat buf;
+ struct stat preparent;
+ struct stat postparent;
} link_cbk;
/* create */
@@ -280,6 +300,8 @@ typedef struct {
fd_t *fd;
inode_t *inode;
struct stat buf;
+ struct stat preparent;
+ struct stat postparent;
} create_cbk;
/* open */
@@ -288,6 +310,7 @@ typedef struct {
loc_t loc;
int32_t flags;
fd_t *fd;
+ int32_t wbflags;
} open;
struct {
fop_open_cbk_t fn;
@@ -324,7 +347,8 @@ typedef struct {
struct {
fop_writev_cbk_t fn;
int32_t op_ret, op_errno;
- struct stat stbuf;
+ struct stat prebuf;
+ struct stat postbuf;
} writev_cbk;
/* flush */
@@ -346,6 +370,8 @@ typedef struct {
struct {
fop_fsync_cbk_t fn;
int32_t op_ret, op_errno;
+ struct stat prebuf;
+ struct stat postbuf;
} fsync_cbk;
/* opendir */
@@ -678,7 +704,8 @@ fop_lookup_cbk_stub (call_frame_t *frame,
int32_t op_errno,
inode_t *inode,
struct stat *buf,
- dict_t *dict);
+ dict_t *dict,
+ struct stat *postparent);
call_stub_t *
fop_stat_stub (call_frame_t *frame,
fop_stat_t fn,
@@ -760,7 +787,8 @@ fop_truncate_cbk_stub (call_frame_t *frame,
fop_truncate_cbk_t fn,
int32_t op_ret,
int32_t op_errno,
- struct stat *buf);
+ struct stat *prebuf,
+ struct stat *postbuf);
call_stub_t *
fop_ftruncate_stub (call_frame_t *frame,
@@ -773,7 +801,8 @@ fop_ftruncate_cbk_stub (call_frame_t *frame,
fop_ftruncate_cbk_t fn,
int32_t op_ret,
int32_t op_errno,
- struct stat *buf);
+ struct stat *prebuf,
+ struct stat *postbuf);
call_stub_t *
fop_utimens_stub (call_frame_t *frame,
@@ -811,7 +840,8 @@ fop_readlink_cbk_stub (call_frame_t *frame,
fop_readlink_cbk_t fn,
int32_t op_ret,
int32_t op_errno,
- const char *path);
+ const char *path,
+ struct stat *buf);
call_stub_t *
fop_mknod_stub (call_frame_t *frame,
@@ -826,7 +856,9 @@ fop_mknod_cbk_stub (call_frame_t *frame,
int32_t op_ret,
int32_t op_errno,
inode_t *inode,
- struct stat *buf);
+ struct stat *buf,
+ struct stat *preparent,
+ struct stat *postparent);
call_stub_t *
fop_mkdir_stub (call_frame_t *frame,
@@ -840,7 +872,9 @@ fop_mkdir_cbk_stub (call_frame_t *frame,
int32_t op_ret,
int32_t op_errno,
inode_t *inode,
- struct stat *buf);
+ struct stat *buf,
+ struct stat *preparent,
+ struct stat *postparent);
call_stub_t *
fop_unlink_stub (call_frame_t *frame,
@@ -851,7 +885,9 @@ call_stub_t *
fop_unlink_cbk_stub (call_frame_t *frame,
fop_unlink_cbk_t fn,
int32_t op_ret,
- int32_t op_errno);
+ int32_t op_errno,
+ struct stat *preparent,
+ struct stat *postparent);
call_stub_t *
fop_rmdir_stub (call_frame_t *frame,
@@ -862,7 +898,9 @@ call_stub_t *
fop_rmdir_cbk_stub (call_frame_t *frame,
fop_rmdir_cbk_t fn,
int32_t op_ret,
- int32_t op_errno);
+ int32_t op_errno,
+ struct stat *preparent,
+ struct stat *postparent);
call_stub_t *
fop_symlink_stub (call_frame_t *frame,
@@ -876,7 +914,9 @@ fop_symlink_cbk_stub (call_frame_t *frame,
int32_t op_ret,
int32_t op_errno,
inode_t *inode,
- struct stat *buf);
+ struct stat *buf,
+ struct stat *preparent,
+ struct stat *postparent);
call_stub_t *
fop_rename_stub (call_frame_t *frame,
@@ -889,7 +929,11 @@ fop_rename_cbk_stub (call_frame_t *frame,
fop_rename_cbk_t fn,
int32_t op_ret,
int32_t op_errno,
- struct stat *buf);
+ struct stat *buf,
+ struct stat *preoldparent,
+ struct stat *postoldparent,
+ struct stat *prenewparent,
+ struct stat *postnewparent);
call_stub_t *
fop_link_stub (call_frame_t *frame,
@@ -903,7 +947,9 @@ fop_link_cbk_stub (call_frame_t *frame,
int32_t op_ret,
int32_t op_errno,
inode_t *inode,
- struct stat *buf);
+ struct stat *buf,
+ struct stat *preparent,
+ struct stat *postparent);
call_stub_t *
fop_create_stub (call_frame_t *frame,
@@ -919,14 +965,17 @@ fop_create_cbk_stub (call_frame_t *frame,
int32_t op_errno,
fd_t *fd,
inode_t *inode,
- struct stat *buf);
+ struct stat *buf,
+ struct stat *preparent,
+ struct stat *postparent);
call_stub_t *
fop_open_stub (call_frame_t *frame,
fop_open_t fn,
loc_t *loc,
int32_t flags,
- fd_t *fd);
+ fd_t *fd,
+ int32_t wbflags);
call_stub_t *
fop_open_cbk_stub (call_frame_t *frame,
@@ -966,7 +1015,8 @@ fop_writev_cbk_stub (call_frame_t *frame,
fop_writev_cbk_t fn,
int32_t op_ret,
int32_t op_errno,
- struct stat *stbuf);
+ struct stat *prebuf,
+ struct stat *postbuf);
call_stub_t *
fop_flush_stub (call_frame_t *frame,
@@ -989,7 +1039,9 @@ call_stub_t *
fop_fsync_cbk_stub (call_frame_t *frame,
fop_fsync_cbk_t fn,
int32_t op_ret,
- int32_t op_errno);
+ int32_t op_errno,
+ struct stat *prebuf,
+ struct stat *postbuf);
call_stub_t *
fop_opendir_stub (call_frame_t *frame,