diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2009-10-01 06:58:46 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-01 07:22:42 -0700 |
commit | 186a86f342625a9dce53fe537f8237c6099d5c54 (patch) | |
tree | 63ee2f3def75293b9f50acf9e49081fb1caad8ae /libglusterfs/src/call-stub.h | |
parent | dca4b2a23cb55e1e15fb393e7cbfd39b59280c9c (diff) |
Global: Introduce setattr and fsetattr fops
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
Diffstat (limited to 'libglusterfs/src/call-stub.h')
-rw-r--r-- | libglusterfs/src/call-stub.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/libglusterfs/src/call-stub.h b/libglusterfs/src/call-stub.h index 07bc92c31..63439478c 100644 --- a/libglusterfs/src/call-stub.h +++ b/libglusterfs/src/call-stub.h @@ -631,6 +631,36 @@ typedef struct { int32_t op_ret; int32_t op_errno; } lock_fnotify_cbk; + + /* setattr */ + struct { + fop_setattr_t fn; + loc_t loc; + struct stat stbuf; + int32_t valid; + } setattr; + struct { + fop_setattr_cbk_t fn; + int32_t op_ret; + int32_t op_errno; + struct stat statpre; + struct stat statpost; + } setattr_cbk; + + /* fsetattr */ + struct { + fop_fsetattr_t fn; + fd_t *fd; + struct stat stbuf; + int32_t valid; + } fsetattr; + struct { + fop_fsetattr_cbk_t fn; + int32_t op_ret; + int32_t op_errno; + struct stat statpre; + struct stat statpost; + } fsetattr_cbk; } args; } call_stub_t; @@ -1232,6 +1262,36 @@ fop_lock_fnotify_stub (call_frame_t *frame, fd_t *fd, int32_t timeout); +call_stub_t * +fop_setattr_stub (call_frame_t *frame, + fop_setattr_t fn, + loc_t *loc, + struct stat *stbuf, + int32_t valid); + +call_stub_t * +fop_setattr_cbk_stub (call_frame_t *frame, + fop_setattr_cbk_t fn, + int32_t op_ret, + int32_t op_errno, + struct stat *statpre, + struct stat *statpost); + +call_stub_t * +fop_fsetattr_stub (call_frame_t *frame, + fop_fsetattr_t fn, + fd_t *fd, + struct stat *stbuf, + int32_t valid); + +call_stub_t * +fop_fsetattr_cbk_stub (call_frame_t *frame, + fop_setattr_cbk_t fn, + int32_t op_ret, + int32_t op_errno, + struct stat *statpre, + struct stat *statpost); + void call_resume (call_stub_t *stub); void call_stub_destroy (call_stub_t *stub); #endif |