summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-10-02 08:46:46 +0530
committerVijay Bellur <vijay@gluster.com>2011-10-02 22:08:02 -0700
commitb6eee04da4a699c7cd850bf2121825cc67f14707 (patch)
tree58ec2747855ba5c37330414b4423fd33e206b80c /xlators/storage/posix/src/posix.c
parent0db88567b916dc0dbfb0dfe2ed8a47f8d50fb317 (diff)
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 <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
-rw-r--r--xlators/storage/posix/src/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 6a623c0a9..ab512af15 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -3924,7 +3924,7 @@ init (xlator_t *this)
other than that of root '/' */
ret = sys_lgetxattr (dir_data->data, "trusted.gfid", gfid, 16);
if (ret == 16) {
- if (__is_root_gfid (gfid) != 0) {
+ if (!__is_root_gfid (gfid)) {
gf_log (this->name, GF_LOG_WARNING,
"%s: gfid (%s) is not that of glusterfs '/' ",
dir_data->data, uuid_utoa (gfid));