diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2014-05-18 19:33:27 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-05-31 10:48:17 -0700 |
commit | 58c4a882c37eb2042cbea341fceb4bd0ef028d9a (patch) | |
tree | d22d78ea567de324e0a9e98cee0b119320e99984 /xlators/storage | |
parent | 3230db8561ddfec2aa26fc106ec65b4a307b6db6 (diff) |
storage/posix: Remove special handling of ENOTSUP for [f]setxattr.
Change-Id: I7df7b2263336af0abe5bc91c674f9401aff6c3e0
BUG: 1098794
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/7788
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Ravishankar N <ravishankar@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/storage')
-rw-r--r-- | xlators/storage/posix/src/posix-helpers.c | 20 |
1 files changed, 2 insertions, 18 deletions
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)); |