summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/storage/posix/src/posix-helpers.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c
index 9e3c16de3ae..d2cf880fb09 100644
--- a/xlators/storage/posix/src/posix-helpers.c
+++ b/xlators/storage/posix/src/posix-helpers.c
@@ -250,12 +250,17 @@ posix_fill_ino_from_gfid (xlator_t *this, struct iatt *buf)
int i = 0;
/* consider least significant 8 bytes of value out of gfid */
+ if (uuid_is_null (buf->ia_gfid)) {
+ buf->ia_ino = -1;
+ goto out;
+ }
for (i = 15; i > (15 - 8); i--) {
temp_ino += buf->ia_gfid[i] << j;
j += 8;
}
-
buf->ia_ino = temp_ino;
+out:
+ return;
}
int