From 58c4a882c37eb2042cbea341fceb4bd0ef028d9a Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Sun, 18 May 2014 19:33:27 +0530 Subject: storage/posix: Remove special handling of ENOTSUP for [f]setxattr. Change-Id: I7df7b2263336af0abe5bc91c674f9401aff6c3e0 BUG: 1098794 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/7788 Tested-by: Gluster Build System Reviewed-by: Ravishankar N Reviewed-by: Niels de Vos Reviewed-by: Vijay Bellur --- xlators/storage/posix/src/posix-helpers.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'xlators/storage/posix/src') diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index 11e423f6bf0..2ddb41a7be2 100644 --- a/xlators/storage/posix/src/posix-helpers.c +++ b/xlators/storage/posix/src/posix-helpers.c @@ -877,8 +877,6 @@ void posix_dump_buffer (xlator_t *this, const char *real_path, const char *key, } #endif -static int gf_xattr_enotsup_log; - int posix_handle_pair (xlator_t *this, const char *real_path, char *key, data_t *value, int flags) @@ -900,14 +898,7 @@ posix_handle_pair (xlator_t *this, const char *real_path, #endif if (sys_ret < 0) { ret = -errno; - if (errno == ENOTSUP) { - GF_LOG_OCCASIONALLY(gf_xattr_enotsup_log, - this->name,GF_LOG_WARNING, - "Extended attributes not " - "supported (try remounting " - "brick with 'user_xattr' " - "flag)"); - } else if (errno == ENOENT) { + if (errno == ENOENT) { if (!posix_special_xattr (marker_xattrs, key)) { gf_log (this->name, GF_LOG_ERROR, @@ -955,14 +946,7 @@ posix_fhandle_pair (xlator_t *this, int fd, if (sys_ret < 0) { ret = -errno; - if (errno == ENOTSUP) { - GF_LOG_OCCASIONALLY(gf_xattr_enotsup_log, - this->name,GF_LOG_WARNING, - "Extended attributes not " - "supported (try remounting " - "brick with 'user_xattr' " - "flag)"); - } else if (errno == ENOENT) { + if (errno == ENOENT) { gf_log (this->name, GF_LOG_ERROR, "fsetxattr on fd=%d failed: %s", fd, strerror (errno)); -- cgit