From: Brian Warner Date: Fri, 7 Sep 2007 06:08:21 +0000 (-0700) Subject: provisioning: require at least one drive per server X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/flags/rgr-080307.php?a=commitdiff_plain;h=2a48283e53b547e879677784349c069417c88f7e;p=tahoe-lafs%2Ftahoe-lafs.git provisioning: require at least one drive per server --- diff --git a/src/allmydata/provisioning.py b/src/allmydata/provisioning.py index ae0cd8a7..bcc7a804 100644 --- a/src/allmydata/provisioning.py +++ b/src/allmydata/provisioning.py @@ -557,8 +557,9 @@ class ProvisioningTool(rend.Page): number(total_file_check_rate, "Hz")]) - total_drives = mathutil.div_ceil(int(total_share_space), - int(drive_size)) + total_drives = max(mathutil.div_ceil(int(total_share_space), + int(drive_size)), + num_servers) add_output("Drives", T.div["Total drives: ", number(total_drives), " drives"]) drives_per_server = mathutil.div_ceil(total_drives, num_servers)