summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorCorentin Chary <corentin.chary@gmail.com>2009-10-15 06:32:40 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-30 03:51:47 -0700
commitef79f934c38743f3618c00bc24043a484f284a47 (patch)
tree818af3455cb2832c142c303a12525a45a203229c /extras
parent0e7875dbf8f70904257725fd4d2be30333da84a2 (diff)
volgen: Add conf-dir option
Add a conf-dir option to change the output directory for generated files. Signed-off-by: Corentin Chary <corentin.chary@gmail.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'extras')
-rw-r--r--extras/glusterfs-volgen.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/extras/glusterfs-volgen.py b/extras/glusterfs-volgen.py
index d3783ab248f..2d6d4f5ff4b 100644
--- a/extras/glusterfs-volgen.py
+++ b/extras/glusterfs-volgen.py
@@ -304,7 +304,7 @@ def main ():
mount_volume_path="/dev/stdout"
try:
- (opt, args) = getopt.getopt (sys.argv[1:], "r:t:c:p:d:n:uh",
+ (opt, args) = getopt.getopt (sys.argv[1:], "r:t:c:p:d:n:o:uh",
["raid=",
"transport=",
"cache-size=",
@@ -313,6 +313,7 @@ def main ():
"num-stripe=",
"num-replica=",
"name=",
+ "conf-dir=",
"upgrade",
"usage",
"help"])
@@ -337,6 +338,10 @@ def main ():
if o == '-n' or o == '--name':
main_name = val
+
+ if o == '-o' or o == '--conf-dir':
+ print val
+ confdir = val
if o == '-d' or o == '--export-directory':
export_dir = val