diff options
author | Peter Portante <peter.portante@redhat.com> | 2013-04-29 23:04:06 -0400 |
---|---|---|
committer | Peter Portante <pportant@redhat.com> | 2013-05-10 07:12:08 -0700 |
commit | 3a75da67cbcf09c19df2a9dca2f576d51ed2191d (patch) | |
tree | 8feb591c6126161691b375cbec9c2c64bff2182c /bin | |
parent | f534d66a4a29ebf7ca070f95cf33b57b4b7283a3 (diff) |
Remove "ufo" directory, promoting contents to top-level
Additionally, we drop the "ufo" references from setup.py, spec file
and README, and add the HISTORY file describing how the repo was
initially created. We also update the RPM spec file to use the name
"gluster-for-swift" to avoid colliding with existing RPM names from
RHS 2.0 (the spec file's description was also updated, along with
the version number).
Change-Id: If804224a94208d57896e4189c63736ffc9e01d5e
Signed-off-by: Peter Portante <peter.portante@redhat.com>
Reviewed-on: http://review.gluster.org/4966
Reviewed-by: Luis Pabon <lpabon@redhat.com>
Reviewed-by: Mohammed Junaid <junaid@redhat.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: Peter Portante <pportant@redhat.com>
Tested-by: Peter Portante <pportant@redhat.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gluster-swift-gen-builders | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/bin/gluster-swift-gen-builders b/bin/gluster-swift-gen-builders new file mode 100755 index 0000000..bef5d14 --- /dev/null +++ b/bin/gluster-swift-gen-builders @@ -0,0 +1,44 @@ +#!/bin/bash + +# Note that these port numbers must match the configured values for the +# various servers in their configuration files. +declare -A port=(["account.builder"]=6012 ["container.builder"]=6011 \ + ["object.builder"]=6010) + +builder_files="account.builder container.builder object.builder" + +function create { + swift-ring-builder $1 create 1 1 1 >> /tmp/out +} + +function add { + swift-ring-builder $1 add z$2-127.0.0.1:$3/$4_ 100.0 +} + +function rebalance { + swift-ring-builder $1 rebalance +} + +function build { + swift-ring-builder $1 +} + +if [ "$1x" = "x" ]; then + echo "Please specify the gluster volume name to use." + exit 1 +fi + +for builder_file in $builder_files +do + create $builder_file + + zone=1 + for volname in $@ + do + add $builder_file $zone ${port[$builder_file]} $volname + zone=$(expr $zone + 1) + done + + rebalance $builder_file + build $builder_file +done |