summaryrefslogtreecommitdiffstats
path: root/extras/create_new_xlator
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2016-04-11 01:51:38 -0400
committerJeff Darcy <jdarcy@redhat.com>2016-04-13 08:01:52 -0700
commitf5383e11291b01b840c9172c4048a676e8bea518 (patch)
tree43a38566062d2e4c69e7c84682a798d678ada04b /extras/create_new_xlator
parente9d5f8c753ae496ac86188764cdff4eac8b820a7 (diff)
extras: Fix the create_new_xlator tool
It is currently importing a non existing module. Remove the same. Change-Id: I7f4b790ba42d8683575768ec14851932a8cddc43 Signed-off-by: Poornima G <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/13960 Reviewed-by: Ravishankar N <ravishankar@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Prashanth Pai <ppai@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'extras/create_new_xlator')
-rwxr-xr-xextras/create_new_xlator/generate_xlator.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/extras/create_new_xlator/generate_xlator.py b/extras/create_new_xlator/generate_xlator.py
index 30bcdd81c92..dd45b1ef55e 100755
--- a/extras/create_new_xlator/generate_xlator.py
+++ b/extras/create_new_xlator/generate_xlator.py
@@ -7,7 +7,6 @@ import time
path = os.path.abspath(os.path.dirname(__file__)) + '/../../libglusterfs/src'
sys.path.append(path)
from generator import ops, xlator_cbks, xlator_dumpops
-from config import fops, xl_cbk, dumpops
MAKEFILE_FMT = """
xlator_LTLIBRARIES = @XL_NAME@.la
@@ -79,15 +78,15 @@ def gen_xlator():
xl_name)
#Generate cbks and fops
- for fop in fops:
+ for fop in ops:
print >> xl, generate(fragments["CBK_TEMPLATE"], fop, ops)
print >> xl, generate(fragments["FOP_TEMPLATE"], fop, ops)
- for cbk in xl_cbk:
+ for cbk in xlator_cbks:
print >> xl, generate(fragments["FUNC_TEMPLATE"], cbk,
xlator_cbks)
- for dops in dumpops:
+ for dops in xlator_dumpops:
print >> xl, generate(fragments["FUNC_TEMPLATE"], dops,
xlator_dumpops)
@@ -95,19 +94,19 @@ def gen_xlator():
#Generate fop table
print >> xl, "struct xlator_fops fops = {"
- for fop in fops:
+ for fop in ops:
print >> xl, " .{0:20} = {1}_{2},".format(fop, fop_prefix, fop)
print >> xl, "};"
#Generate xlator_cbks table
print >> xl, "struct xlator_cbks cbks = {"
- for cbk in xl_cbk:
+ for cbk in xlator_cbks:
print >> xl, " .{0:20} = {1}_{2},".format(cbk, fop_prefix, cbk)
print >> xl, "};"
#Generate xlator_dumpops table
print >> xl, "struct xlator_dumpops dumpops = {"
- for dops in dumpops:
+ for dops in xlator_dumpops:
print >> xl, " .{0:20} = {1}_{2},".format(dops, fop_prefix, dops)
print >> xl, "};"