summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/protocol/client/src/client3_1-fops.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/xlators/protocol/client/src/client3_1-fops.c b/xlators/protocol/client/src/client3_1-fops.c
index 9bad8b4ed35..69f2646978d 100644
--- a/xlators/protocol/client/src/client3_1-fops.c
+++ b/xlators/protocol/client/src/client3_1-fops.c
@@ -3769,10 +3769,14 @@ client3_1_statfs (call_frame_t *frame, xlator_t *this,
args = data;
- if (!(args->loc && args->loc->inode))
+ if (!args->loc)
goto unwind;
- memcpy (req.gfid, args->loc->inode->gfid, 16);
+ if (args->loc->inode)
+ memcpy (req.gfid, args->loc->inode->gfid, 16);
+ else
+ req.gfid[15] = 1;
+
req.path = (char *)args->loc->path;
req.gfs_id = GFS3_OP_STATFS;