[Gluster-devel] [PATCH] Add support for min-free-disk in dht and the new nufa as a valid glusterfs size as well as p

plrca2 at gmail.com plrca2 at gmail.com
Sun May 3 06:00:25 UTC 2009


Sorry, I have yet another line that was left out. Please excuse my git  
failure.


--- a/xlators/cluster/dht/src/dht-diskusage.c
+++ b/xlators/cluster/dht/src/dht-diskusage.c
@@ -234,12 +235,13 @@ dht_free_disk_available_subvol (xlator_t *this,  
xlator_t *subvol)
for (i = 0; i < conf->subvolume_cnt; i++) {
if (conf->disk_unit == 'p') {
if (conf->du_stats[i].avail_percent > max_avail) {
- max_avail = conf->du_stats[i].avail_percent;
+ max_avail = conf->du_stats[i].avail_percent;
}
avail_subvol = conf->subvolumes[i];
} else {
if (conf->du_stats[i].avail_space > max_avail) {
- max_avail = conf->du_stats[i].avail_space;
+ max_avail = conf->du_stats[i].avail_space;
+ avail_subvol = conf->subvolumes[i];
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20090503/00150f0a/attachment-0003.html>


More information about the Gluster-devel mailing list