summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-09-13 02:00:36 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-13 06:44:54 -0700
commita3dd23e5fd0d4fc950068d54f085a99f17955842 (patch)
tree6d5d5f047915c3ad02262a92479b4f005cecd324
parent6d52dfb6646286f2dfd554dc008e96f9b13aade9 (diff)
No space left on device error
Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1588 (No space left on device error) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1588
-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;