From b6eee04da4a699c7cd850bf2121825cc67f14707 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Sun, 2 Oct 2011 08:46:46 +0530 Subject: core: made changes to return value of __is_root_gfid() now returns 'true(1)' is gfid is root, 'false(0)' if not. earlier it was the inverse, which was bit confusing Change-Id: Id103f444ace048cbb0fccdc72c6646da06631584 BUG: 3518 Reviewed-on: http://review.gluster.com/549 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- libglusterfs/src/compat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libglusterfs/src/compat.c') diff --git a/libglusterfs/src/compat.c b/libglusterfs/src/compat.c index e6c7f41e1a5..20e165a7a1b 100644 --- a/libglusterfs/src/compat.c +++ b/libglusterfs/src/compat.c @@ -121,7 +121,7 @@ make_export_path (const char *real_path, char **path) ret = solaris_getxattr ("/", GFID_XATTR_KEY, gfid, 16); /* Return value of getxattr */ if (ret == 16) { - if (!__is_root_gfid (gfid)){ + if (__is_root_gfid (gfid)){ strcat (export_path, "/"); ret = 0; goto done; @@ -135,7 +135,7 @@ make_export_path (const char *real_path, char **path) strcat (export_path, dup); ret = solaris_getxattr (export_path, GFID_XATTR_KEY, gfid, 16); if (ret == 16) { - if (!__is_root_gfid (gfid)) { + if (__is_root_gfid (gfid)) { ret = 0; goto done; } -- cgit