From c20359b5b2a564e83b5830b9a17013e780096e2d Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 18 Mar 2009 18:31:30 -0700 Subject: fixed sys_ related warnings. (on mac os x and opensolaris) The fix in posix will fix 'unresolved' symbol errors in Mac/Solaris/FreeBSD Signed-off-by: Anand V. Avati --- libglusterfs/src/compat.h | 1 + libglusterfs/src/syscall.c | 2 +- xlators/storage/posix/src/posix.c | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libglusterfs/src/compat.h b/libglusterfs/src/compat.h index 42d2fa1419e..228daf5da9d 100644 --- a/libglusterfs/src/compat.h +++ b/libglusterfs/src/compat.h @@ -230,6 +230,7 @@ int solaris_fgetxattr(int fd, const char* key, char *value, size_t size); int solaris_fsetxattr(int fd, const char* key, const char *value, size_t size, int flags); +int solaris_flistxattr(int fd, char *list, size_t size); #endif /* GF_SOLARIS_HOST_OS */ diff --git a/libglusterfs/src/syscall.c b/libglusterfs/src/syscall.c index f8e8c939a77..d350710e2db 100644 --- a/libglusterfs/src/syscall.c +++ b/libglusterfs/src/syscall.c @@ -369,7 +369,7 @@ sys_fsetxattr (int filedes, const char *name, const void *value, #endif #ifdef GF_SOLARIS_HOST_OS - solaris_fsetxattr (filedes, name, value, size, flags); + return solaris_fsetxattr (filedes, name, value, size, flags); #endif #ifdef GF_DARWIN_HOST_OS diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 50aea0f36de..534db05fdbe 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -3850,7 +3850,7 @@ init (xlator_t *this) /* Check for Extended attribute support, if not present, log it */ - op_ret = lsetxattr (dir_data->data, + op_ret = sys_lsetxattr (dir_data->data, "trusted.glusterfs.test", "working", 8, 0); if (op_ret < 0) { tmp_data = dict_get (this->options, @@ -3995,7 +3995,7 @@ void fini (xlator_t *this) { struct posix_private *priv = this->private; - lremovexattr (priv->base_path, "trusted.glusterfs.test"); + sys_lremovexattr (priv->base_path, "trusted.glusterfs.test"); FREE (priv); return; } -- cgit