diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-08-26 05:32:09 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-09-02 10:30:22 -0700 |
commit | d01487e9b8bc056adf611201a6a3b8f48c7af7f8 (patch) | |
tree | 9689efb18b1e8b58af9062d6c7dd872e798c7954 /libglusterfsclient | |
parent | 246abbe2f95d2492a8b57c8210fbdc3511d7a4f4 (diff) |
libglusterfsclient: return -1 with errno set to ENOSYS for apis which are not implemented.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 229 (For apis which are not implemented return correct values with errno set appropriately)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=229
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index d2f9a3dc208..6a4e137cf9b 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -3216,7 +3216,8 @@ glusterfs_listxattr (glusterfs_handle_t handle, char *list, size_t size) { - return ENOSYS; + errno = ENOSYS; + return -1; } ssize_t @@ -3225,7 +3226,8 @@ glusterfs_llistxattr (glusterfs_handle_t handle, char *list, size_t size) { - return ENOSYS; + errno = ENOSYS; + return -1; } ssize_t @@ -3233,7 +3235,8 @@ glusterfs_flistxattr (glusterfs_file_t fd, char *list, size_t size) { - return ENOSYS; + errno = ENOSYS; + return -1; } int @@ -3241,7 +3244,8 @@ glusterfs_removexattr (glusterfs_handle_t handle, const char *path, const char *name) { - return ENOSYS; + errno = ENOSYS; + return -1; } int @@ -3249,14 +3253,16 @@ glusterfs_lremovexattr (glusterfs_handle_t handle, const char *path, const char *name) { - return ENOSYS; + errno = ENOSYS; + return -1; } int glusterfs_fremovexattr (glusterfs_file_t fd, const char *name) { - return ENOSYS; + errno = ENOSYS; + return -1; } int32_t |