--- /dev/null
+.PHONY: default xseg clean distclean build
+
+default: xseg
+
+build: xseg
+
+xseg:
+ make -C xseg XSEG_DOMAIN_TARGET="user"
+
+clean:
+ make -C xseg clean
+ rm ./config.mk
+
+distclean:
+ make -C xseg distclean
--- /dev/null
+The Debian Package archipelagos
+------------------------------
+
+Comments regarding the Package
+
--- /dev/null
+#XSEG_HOME="/home/philipgian/archip/xseg"
+#MODULES_DIR="${XSEG_HOME}/lib/kernel"
+
+SPEC="segdev:xsegbd:512:1024:12"
+REQS=512
+PORTS=512
+
+IMAGES="/srv/archip/blocks"
+MAPS="/srv/archip/maps"
+
+PITHOS="/srv/pithos/data/blocks"
+PITHOSMAPS="/srv/pithos/data/maps"
+
+DEVICE_PREFIX="/dev/xsegbd"
+XSEGBD_SYSFS="/sys/bus/xsegbd/"
+
+CHRDEV_NAME="/dev/segdev"
+CHRDEV_MAJOR=60
+
+BPORT=0
+MPORT=1
+MBPORT=2
+VTOOL=3
+VPORT_START=204
+VPORT_END=403
+
+NR_OPS=128
+
--- /dev/null
+archipelagos (0.1.1-1) unstable; urgency=low
+
+ * Initial release
+
+ -- Filippos Giannakos <philipgian@grnet.gr> Thu, 25 Oct 2012 12:04:57 +0300
--- /dev/null
+Source: archipelagos
+Section: otherosfs
+Priority: extra
+Maintainer: Filippos Giannakos <philipgian@grnet.gr>
+Build-Depends: debhelper (>= 7.0.50~)
+Standards-Version: 3.9.1
+
+Package: archipelagos
+Architecture: amd64
+Depends: ${misc:Depends}, ${shlibs:Depends}, ${python:Depends}, libgcrypt11(>=1.4.5-2), libst1(>=1.9-3), librados2(>=0.48.2)
+Description: Provides archipelagos infrastructure
+ Extended Description here
--- /dev/null
+This package was debianized by Filippos Giannakos <philipgian@grnet.gr> on
+
+Upstream Author(s):
+
+ Filippos Giannakos < philipgian@grnet.gr >
+
+Copyright:
+
+ Copyright (C) 2010 GRNET SA
+
+License:
+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2012, Filippos Giannakos <philipgian@grnet.gr> and
+is licensed under the GPL, see above.
--- /dev/null
+usr/bin
+usr/lib
--- /dev/null
+[DEFAULT]
+sign-tags = False
+pristine-tar = False
+
+[git-buildpackage]
+export-dir = ../build-area/
+tarball-dir = ../tarballs/
--- /dev/null
+#file directory without starting /
+#FILL ME
+#
+xseg/lib/user/libxseg.so usr/lib
+xseg/lib/user/libxseg.so.0 usr/lib
+xseg/lib/user/libxseg.so.0.0.1 usr/lib
+#xseg/lib/user/xseg_posix.so usr/lib
+#xseg/lib/user/xseg_pthread.so usr/lib
+#xseg/lib/user/xseg_segdev.so usr/lib
+
+xseg/peers/user/st-vlmcd usr/bin
+xseg/peers/user/mt-mapperd usr/bin
+xseg/peers/user/pfiled usr/bin
+xseg/peers/user/mt-sosd usr/bin
+xseg/peers/user/xseg usr/bin
+xseg/peers/user/vlmc-xseg usr/bin
+xseg/tools/vlmc usr/bin
+
+#vlmc ganeti ext storage scripts
+xseg/tools/ext_scripts/attach usr/share/ganeti/extstorage/vlmc
+xseg/tools/ext_scripts/create usr/share/ganeti/extstorage/vlmc
+xseg/tools/ext_scripts/detach usr/share/ganeti/extstorage/vlmc
+xseg/tools/ext_scripts/grow usr/share/ganeti/extstorage/vlmc
+xseg/tools/ext_scripts/parameters.list usr/share/ganeti/extstorage/vlmc
+xseg/tools/ext_scripts/remove usr/share/ganeti/extstorage/vlmc
+xseg/tools/ext_scripts/verify usr/share/ganeti/extstorage/vlmc
+xseg/tools/ext_scripts/vlmc_wrapper.py usr/share/ganeti/extstorage/vlmc
+
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+%:
+ dh $@
+
+
--- /dev/null
+3.0 (quilt)
make -C $$f/$(@:clean-%=%) TARGET=$@ clean || true; \
echo " "; \
done
- rm -f ./config.mk
@echo " "
distclean: $(XSEG_CLEAN_TARGETS)
rm -f lib/user/*.so* lib/user/*.a
rm -f lib/kernel/*.ko
+ rm -f $(XSEG_HOME)/config.mk
#endif
ifeq (,$(XSEG_HOME))
-export XSEG_HOME=.
+export XSEG_HOME=$(CURDIR)
endif
CONFIG=./config.mk
print >> sys.stderr, "At least one of the size/snap args must be provided"
sys.exit(-1)
- cmd = [XSEG_HOME + "/peers/user/vlmc-xseg", "%s" % SPEC, "create", "--name", "%s" % name]
+ cmd = ["vlmc-xseg", "%s" % SPEC, "create", "--name", "%s" % name]
if snap != None:
cmd.extend(["--snap", "%s" % snap])
if size != None:
cmd.extend(["--size", "%s" % size])
cmd.extend(["-mp", "%s" % MPORT])
cmd.extend(["-p", "%s" % VTOOL])
- os.environ['LD_LIBRARY_PATH'] = XSEG_HOME + "/lib:" + XSEG_HOME + "/lib/user"
try:
check_call(cmd, shell=False, env=os.environ);
def vlmc_remove(args):
name = args.name[0]
- cmd = [XSEG_HOME + "/peers/user/vlmc-xseg", "%s" % SPEC, "remove", "--name", "%s" % name]
+ cmd = ["vlmc-xseg", "%s" % SPEC, "remove", "--name", "%s" % name]
cmd.extend(["-mp", "%s" % MPORT])
cmd.extend(["-p", "%s" % VTOOL])
- os.environ['LD_LIBRARY_PATH'] = XSEG_HOME + "/lib:" + XSEG_HOME + "/lib/user"
try:
check_call(cmd, shell=False, env=os.environ);
#FIXME
try:
if rc == None:
- execfile(os.path.expanduser("~/.xsegrc"), globals())
+ execfile(os.path.expanduser("/etc/default/archipelagos"), globals())
else:
execfile(rc, globals())
except: