diff options
author | Amar Tumballi <amar@gluster.com> | 2010-08-20 07:50:39 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-21 05:17:18 -0700 |
commit | 6b55c3b072b5663a4709b79513ada9f44d8ab8c2 (patch) | |
tree | 71f88bf7fa93ef82cc8e106ff06fc101837dafb4 /extras/volgen/glusterfs-volgen.in | |
parent | 883913af305e2de2d51ebac083b359bafebb782c (diff) |
generate separate volume files for nfs in case of 'portmapper' mode
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1319 (gnfs support in gluster command line)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1319
Diffstat (limited to 'extras/volgen/glusterfs-volgen.in')
-rwxr-xr-x | extras/volgen/glusterfs-volgen.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/extras/volgen/glusterfs-volgen.in b/extras/volgen/glusterfs-volgen.in index 31a81122810..4b3742366c5 100755 --- a/extras/volgen/glusterfs-volgen.in +++ b/extras/volgen/glusterfs-volgen.in @@ -185,6 +185,16 @@ def generate_volume_files (): except IOError, (errno, strerror): print "Got %s creating client volfiles for transport '%s'" % (strerror, transport) + if options.need_nfs: + for transport in transports: + create_mnt = CreateVolfile (server_dict, None, + transport, transports, + options, server_array) + try: + create_mnt.create_pmap_nfs_volfile () + except IOError, (errno, strerror): + print "Got %s creating nfs volfiles for transport '%s'" % (strerror, transport) + return for server in server_dict.keys(): |