[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gluster-devel] [PATCH] Add support for min-free-disk in dht and th
From: |
Anand Avati |
Subject: |
Re: [Gluster-devel] [PATCH] Add support for min-free-disk in dht and the new nufa as a valid glusterfs size as well as p |
Date: |
Tue, 5 May 2009 17:02:28 +0530 |
this patch is htmlized and not applicable. Please use git send-email
to submit patches (instead of pasting the diffs in gmail)
Avati
On Sun, May 3, 2009 at 11:30 AM, <address@hidden> wrote:
> 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];
> }
> }
> }
> _______________________________________________
> Gluster-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>
>