From a3dd23e5fd0d4fc950068d54f085a99f17955842 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Mon, 13 Sep 2010 02:00:36 +0000 Subject: No space left on device error Signed-off-by: shishir gowda Signed-off-by: Vijay Bellur BUG: 1588 (No space left on device error) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1588 --- xlators/protocol/client/src/client3_1-fops.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'xlators') diff --git a/xlators/protocol/client/src/client3_1-fops.c b/xlators/protocol/client/src/client3_1-fops.c index 9bad8b4ed..69f264697 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; -- cgit