diff options
author | Vijay Bellur <vbellur@redhat.com> | 2019-07-09 16:32:36 -0700 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2019-07-09 21:41:56 -0700 |
commit | b82743a5822626e83b233956803421fda9b1c3f9 (patch) | |
tree | a799c827d4ee6d1756347811bfe4ce627fea0458 /xlators/mount/fuse/src/fuse-helpers.c | |
parent | ad828d2e0c930b31b870c92fbaeac7a43fee08da (diff) |
Remove hadoop related code from the codebase
As Hadoop is no longer supported, dropping code for
handling Hadoop access.
Fixes: bz#1728417
Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Change-Id: I8fcf4faacb364f1c9a8abb0c48faec337087f845
Diffstat (limited to 'xlators/mount/fuse/src/fuse-helpers.c')
-rw-r--r-- | xlators/mount/fuse/src/fuse-helpers.c | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c index 5bfc40c9fcb..3b00eee8f6a 100644 --- a/xlators/mount/fuse/src/fuse-helpers.c +++ b/xlators/mount/fuse/src/fuse-helpers.c @@ -581,30 +581,17 @@ fuse_flip_xattr_ns(fuse_private_t *priv, char *okey, char **nkey) int ret = 0; gf_boolean_t need_flip = _gf_false; - switch (priv->client_pid) { - case GF_CLIENT_PID_GSYNCD: - /* valid xattr(s): *xtime, volume-mark* */ - gf_log("glusterfs-fuse", GF_LOG_DEBUG, - "PID: %d, checking xattr(s): " - "volume-mark*, *xtime", - priv->client_pid); - if ((strcmp(okey, UNPRIV_XA_NS ".glusterfs.volume-mark") == 0) || - (fnmatch(UNPRIV_XA_NS ".glusterfs.volume-mark.*", okey, - FNM_PERIOD) == 0) || - (fnmatch(UNPRIV_XA_NS ".glusterfs.*.xtime", okey, FNM_PERIOD) == - 0)) - need_flip = _gf_true; - break; - - case GF_CLIENT_PID_HADOOP: - /* valid xattr(s): pathinfo */ - gf_log("glusterfs-fuse", GF_LOG_DEBUG, - "PID: %d, checking xattr(s): " - "pathinfo", - priv->client_pid); - if (strcmp(okey, UNPRIV_XA_NS ".glusterfs.pathinfo") == 0) - need_flip = _gf_true; - break; + if (GF_CLIENT_PID_GSYNCD == priv->client_pid) { + /* valid xattr(s): *xtime, volume-mark* */ + gf_log("glusterfs-fuse", GF_LOG_DEBUG, + "PID: %d, checking xattr(s): " + "volume-mark*, *xtime", + priv->client_pid); + if ((strcmp(okey, UNPRIV_XA_NS ".glusterfs.volume-mark") == 0) || + (fnmatch(UNPRIV_XA_NS ".glusterfs.volume-mark.*", okey, + FNM_PERIOD) == 0) || + (fnmatch(UNPRIV_XA_NS ".glusterfs.*.xtime", okey, FNM_PERIOD) == 0)) + need_flip = _gf_true; } if (need_flip) { |