From c02cd37866ae22e3a433d737f3c80395bb72f002 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 6 Oct 2010 05:23:44 +0000 Subject: distribute: bring in statfs normalization We had normalization of statvfs structure in 'cluster/unify' translator, with distribute, we had this section as 'TODO:'. Now, the same code is migrated to distribute. Thanks to for sending the patches Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati BUG: 1035 (The distribute translator does not handle differently sized block sizes and/or fragment sizes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1035 --- xlators/cluster/dht/src/dht-diskusage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster/dht/src/dht-diskusage.c') diff --git a/xlators/cluster/dht/src/dht-diskusage.c b/xlators/cluster/dht/src/dht-diskusage.c index 879d6f443..14e278b12 100644 --- a/xlators/cluster/dht/src/dht-diskusage.c +++ b/xlators/cluster/dht/src/dht-diskusage.c @@ -52,7 +52,7 @@ dht_du_info_cbk (call_frame_t *frame, void *cookie, xlator_t *this, if (statvfs && statvfs->f_blocks) { percent = (statvfs->f_bfree * 100) / statvfs->f_blocks; - bytes = (statvfs->f_bfree * statvfs->f_bsize); + bytes = (statvfs->f_bfree * statvfs->f_frsize); } LOCK (&conf->subvolume_lock); -- cgit