diff options
-rw-r--r-- | libglusterfs/src/defaults.c | 30 | ||||
-rw-r--r-- | libglusterfs/src/defaults.h | 166 |
2 files changed, 181 insertions, 15 deletions
diff --git a/libglusterfs/src/defaults.c b/libglusterfs/src/defaults.c index a007beb4559..7ae60130e62 100644 --- a/libglusterfs/src/defaults.c +++ b/libglusterfs/src/defaults.c @@ -105,7 +105,7 @@ default_stat (call_frame_t *frame, return 0; } -static int32_t +int32_t default_truncate_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -169,7 +169,7 @@ default_ftruncate (call_frame_t *frame, return 0; } -static int32_t +int32_t default_access_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -198,7 +198,7 @@ default_access (call_frame_t *frame, } -static int32_t +int32_t default_readlink_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -231,7 +231,7 @@ default_readlink (call_frame_t *frame, } -static int32_t +int32_t default_mknod_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -267,7 +267,7 @@ default_mknod (call_frame_t *frame, return 0; } -static int32_t +int32_t default_mkdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -302,7 +302,7 @@ default_mkdir (call_frame_t *frame, return 0; } -static int32_t +int32_t default_unlink_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -328,7 +328,7 @@ default_unlink (call_frame_t *frame, return 0; } -static int32_t +int32_t default_rmdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -359,7 +359,7 @@ default_rmdir (call_frame_t *frame, } -static int32_t +int32_t default_symlink_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -390,7 +390,7 @@ default_symlink (call_frame_t *frame, } -static int32_t +int32_t default_rename_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -422,7 +422,7 @@ default_rename (call_frame_t *frame, } -static int32_t +int32_t default_link_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -453,7 +453,7 @@ default_link (call_frame_t *frame, } -static int32_t +int32_t default_create_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -484,7 +484,7 @@ default_create (call_frame_t *frame, return 0; } -static int32_t +int32_t default_open_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -514,7 +514,7 @@ default_open (call_frame_t *frame, return 0; } -static int32_t +int32_t default_readv_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -553,7 +553,7 @@ default_readv (call_frame_t *frame, } -static int32_t +int32_t default_writev_cbk (call_frame_t *frame, void *cookie, xlator_t *this, @@ -678,7 +678,7 @@ default_fstat (call_frame_t *frame, return 0; } -static int32_t +int32_t default_opendir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, diff --git a/libglusterfs/src/defaults.h b/libglusterfs/src/defaults.h index d98fa02cf51..58ef90d423d 100644 --- a/libglusterfs/src/defaults.h +++ b/libglusterfs/src/defaults.h @@ -266,4 +266,170 @@ int32_t default_fsetattr (call_frame_t *frame, struct iatt *stbuf, int32_t valid); +int32_t +default_truncate_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + struct iatt *prebuf, + struct iatt *postbuf); + +int32_t +default_access_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno); + +int32_t +default_readlink_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + const char *path, + struct iatt *buf); + +int32_t +default_mknod_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + inode_t *inode, + struct iatt *buf, + struct iatt *preparent, + struct iatt *postparent); + +int32_t +default_mkdir_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + inode_t *inode, + struct iatt *buf, + struct iatt *preparent, + struct iatt *postparent); + +int32_t +default_unlink_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + struct iatt *preparent, + struct iatt *postparent); + +int32_t +default_rmdir_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + struct iatt *preparent, + struct iatt *postparent); + +int32_t +default_symlink_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + inode_t *inode, + struct iatt *buf, + struct iatt *preparent, + struct iatt *postparent); + +int32_t +default_rename_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + struct iatt *buf, + struct iatt *preoldparent, + struct iatt *postoldparent, + struct iatt *prenewparent, + struct iatt *postnewparent); + +int32_t +default_link_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + inode_t *inode, + struct iatt *buf, + struct iatt *preparent, + struct iatt *postparent); + + +int32_t +default_create_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + fd_t *fd, + inode_t *inode, + struct iatt *buf, + struct iatt *preparent, + struct iatt *postparent); + +int32_t +default_open_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + fd_t *fd); + +int32_t +default_readv_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + struct iovec *vector, + int32_t count, + struct iatt *stbuf, + struct iobref *iobref); + +int32_t +default_opendir_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + fd_t *fd); + +int32_t +default_setattr_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + struct iatt *statpre, + struct iatt *statpost); + +int32_t +default_fsetattr_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + struct iatt *statpre, + struct iatt *statpost); + +int32_t +default_writev_cbk (call_frame_t *frame, + void *cookie, + xlator_t *this, + int32_t op_ret, + int32_t op_errno, + struct iatt *prebuf, + struct iatt *postbuf); + #endif /* _DEFAULTS_H */ |