diff options
author | Harshavardhana <harsha@harshavardhana.net> | 2014-10-28 18:19:30 -0700 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-10-31 10:07:01 -0700 |
commit | bf9e4330e4108e0dbab8ebf300bf7998551b9589 (patch) | |
tree | 8603fe9df6ef7e3d02ca864335e76e7a8230d347 /api | |
parent | 5beb3a886c3bb12dfb0a9515e366de49859c2be1 (diff) |
rebalance: ``check_free_space`` should ignore quota_statfs
quota_statfs() returns aggregated details of space usage
of bricks this causes distribute to be confused during
``rebalance``, where ``statfs()`` values are used to
schedule file migration.
We can make sure the values of ``statfs`` are from
individual bricks by selectively instructing
``quota_statfs()`` to return non aggregated values.
Change-Id: I1397faeee66a1b9c26709cfda693286d227a4170
BUG: 1158262
Signed-off-by: Harshavardhana <harsha@harshavardhana.net>
Reviewed-on: http://review.gluster.org/8996
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: N Balachandran <nbalacha@redhat.com>
Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/src/glfs-fops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c index a5ab8e43961..66a3df2b2d1 100644 --- a/api/src/glfs-fops.c +++ b/api/src/glfs-fops.c @@ -2172,7 +2172,7 @@ retry: if (ret) goto out; - ret = syncop_statfs (subvol, &loc, buf); + ret = syncop_statfs (subvol, &loc, NULL, buf, NULL); DECODE_SYNCOP_ERR (ret); ESTALE_RETRY (ret, errno, reval, &loc, retry); |