Fix vlmc tool open, close. Also fix parameters.list install
authorFilippos Giannakos <philipgian@grnet.gr>
Mon, 14 Jan 2013 14:12:23 +0000 (16:12 +0200)
committerFilippos Giannakos <philipgian@grnet.gr>
Mon, 14 Jan 2013 14:12:23 +0000 (16:12 +0200)
xseg/tools/archipelago
xseg/tools/ext_scripts/Makefile

index 9a4e6ac..12fbbdf 100755 (executable)
@@ -1123,7 +1123,7 @@ def vlmc_open(args):
 
     ret = False
     xseg_ctx = Xseg_ctx(SPEC, VTOOL)
-    with Request(xseg_ctx, VPORT, len(name), 0) as req:
+    with Request(xseg_ctx, VPORT_START, len(name), 0) as req:
         req.set_op(X_OPEN)
         req.set_size(0)
         req.set_offset(0)
@@ -1148,7 +1148,7 @@ def vlmc_close(args):
 
     ret = False
     xseg_ctx = Xseg_ctx(SPEC, VTOOL)
-    with Request(xseg_ctx, VPORT, len(name), 0) as req:
+    with Request(xseg_ctx, VPORT_START, len(name), 0) as req:
         req.set_op(X_CLOSE)
         req.set_size(0)
         req.set_offset(0)
index bd29645..d44a060 100644 (file)
@@ -2,7 +2,8 @@
 
 include $(XSEG_HOME)/base.mk
 
-FILES="Makefile"
+DEVFILES="Makefile"
+
 FILES+="parameters.list"
 
 EFILES="vlmc_wrapper.py"
@@ -21,12 +22,18 @@ clean:
 
 install:
        install -d $(DESTDIR)$(ganetidir)
+       @for f in $(FILES) ; do \
+               install -o 0 -g 0 -m 644 -t $(DESTDIR)$(ganetidir) $$f ; \
+       done
        @for f in $(EFILES) ; do \
                install -o 0 -g 0 -m 755 -t $(DESTDIR)$(ganetidir) $$f ; \
        done
 
 install-src:
        install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+       @for f in $(DEVFILES) ; do \
+               install -o 0 -g 0 -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+       done
        @for f in $(FILES) ; do \
                install -o 0 -g 0 -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
        done