debian/0000755000000000000000000000000012251446203007165 5ustar debian/control0000644000000000000000000000265112251444523010577 0ustar Source: diod Section: admin Priority: optional Maintainer: Євгеній Мещеряков Build-Depends: debhelper (>= 9~), autotools-dev, libpopt-dev, liblua5.1-0-dev, libmunge-dev, libcap-dev, libncurses5-dev, libwrap0-dev, valgrind [amd64 i386 powerpc], pkg-config, autotools-dev Build-Conflicts: valgrind [armel] Standards-Version: 3.9.4 Homepage: http://code.google.com/p/diod/ Vcs-Git: git://anonscm.debian.org/collab-maint/diod.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/diod.git Package: diod Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: I/O forwarding server for 9P diod is an I/O forwarding server that implements a variant of the 9P protocol from (9P2000.L) the Plan 9 operating system. When paired with a modern version of the v9fs Linux 9P client, diod allows a file system to be exported over a TCP/IP network in a manner similar to NFS. . The file system that is exported can itself be NFS or a parallel file system like Lustre or GPFS. This can be done with minimal loss of distributed semantics because the v9fs client (when used with appropriate mount options) has no page or directory cache - all I/O operations trigger a network request. The page cache effectively moves to the server system, with diod appearing as a multi-threaded user application accessing the file system in the usual way through the VFS. debian/TODO0000644000000000000000000000010712251444523007656 0ustar * Add rdma support (required libraries: libibverbs-dev, librdmacm-dev) debian/compat0000644000000000000000000000000212251444523010366 0ustar 9 debian/copyright0000644000000000000000000000632312251444523011127 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: diod Source: https://github.com/chaos/diod/ Files: * Copyright: 2010-2012 Lawrence Livermore National Security, LLC. License: GPL-2 Files: liblsd/* Copyright: 2001-2005 The Regents of the University of California License: GPL-2+ Files: libnpclient/* libnpfs/* Copyright: 2005-2006 Latchesar Ionkov License: MIT-like Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: libnpfs/9p.h Copyright: 2005 Latchesar Ionkov 2004 Eric Van Hensbergen 2002 Ron Minnich License: GPL-2 Files: debian/* Copyright: 2011-2012 Євгеній Мещеряков License: GPL-2+ License: GPL-2 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 version 2, dated June 1991. . 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 program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". License: GPL-2+ 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 program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/changelog0000644000000000000000000001416312251444523011047 0ustar diod (1.0.14-5) unstable; urgency=medium * Add 'exit 0' to the end of the init script. This should stop it from failing in non-verbose mode. Thanks to Andrew Shadura (Closes: #731589) -- Євгеній Мещеряков Mon, 09 Dec 2013 23:49:33 +0100 diod (1.0.14-4) unstable; urgency=low * New patch: - tests-num-threads.diff - reduce number of threads run by tests/user/t10. This should fix FTBFS on mips(el). -- Євгеній Мещеряков Mon, 28 Oct 2013 22:41:43 +0100 diod (1.0.14-3) unstable; urgency=low * Use autotools-dev when building the package. This should fix FTBFS on arm64 (closes: #727846). * Standards-Version 3.9.4 — no changes required -- Євгеній Мещеряков Sun, 27 Oct 2013 20:18:54 +0100 diod (1.0.14-2) unstable; urgency=low * Upload to unstable -- Євгеній Мещеряков Sun, 05 May 2013 16:14:21 +0200 diod (1.0.14-1) experimental; urgency=low * New upstream release * Use pkg-config to get lua include flags -- Євгеній Мещеряков Sun, 22 Jul 2012 22:18:52 +0200 diod (1.0.13-3) unstable; urgency=low * Really ignore memcheck failure in misc/t15 -- Євгеній Мещеряков Sat, 26 May 2012 17:16:35 +0200 diod (1.0.13-2) unstable; urgency=low * Ignore failure of memcheck in misc/t15 -- Євгеній Мещеряков Sat, 26 May 2012 16:23:26 +0200 diod (1.0.13-1) unstable; urgency=low * New upstream release * Use debhelper 9 for hardening flags * Append to CPPFLAGS instead of replacing it in debian/rules -- Євгеній Мещеряков Thu, 24 May 2012 23:14:24 +0200 diod (1.0.10-1) unstable; urgency=low * New upstream release -- Євгеній Мещеряков Mon, 09 Apr 2012 14:04:15 +0200 diod (1.0.9-2) unstable; urgency=low * Ignore memcheck errors in misc/t13 (fixes FTBFS) -- Євгеній Мещеряков Sun, 18 Mar 2012 00:32:27 +0100 diod (1.0.9-1) unstable; urgency=low * New upstream release * Standards-Version 3.9.3 — no changes required -- Євгеній Мещеряков Sat, 17 Mar 2012 23:26:23 +0100 diod (1.0.6-1) unstable; urgency=low * New upstream release * Update debian/copyright -- Євгеній Мещеряков Sun, 04 Mar 2012 21:21:16 +0100 diod (1.0.0-1) unstable; urgency=low * New upstream release -- Євгеній Мещеряков Tue, 21 Feb 2012 22:03:54 +0100 diod (1.0~pre62-1) unstable; urgency=low * New upstream release -- Євгеній Мещеряков Sat, 28 Jan 2012 20:27:45 +0100 diod (1.0~pre59-1) unstable; urgency=low * New upstream release -- Євгеній Мещеряков Sat, 14 Jan 2012 20:06:35 +0100 diod (1.0~pre56-1) unstable; urgency=low * New upstream release -- Євгеній Мещеряков Fri, 30 Dec 2011 17:22:56 +0100 diod (1.0~pre55-1) unstable; urgency=low * New upstream release * Do not use github redirector in debian/watch -- Євгеній Мещеряков Mon, 26 Dec 2011 22:22:01 +0100 diod (1.0~pre52-1) unstable; urgency=low * New upstream release * Remove proto.h workaround — merged upstream * Add parallel build support -- Євгеній Мещеряков Sat, 17 Dec 2011 01:44:54 +0100 diod (1.0~pre51-1) unstable; urgency=low * New upstream release * Add a watch file * Add workaround for missing proto.h * Fix syntax errors in the copyright file -- Євгеній Мещеряков Sat, 17 Sep 2011 18:39:03 +0200 diod (1.0~pre50-1) unstable; urgency=low * New upstream release -- Євгеній Мещеряков Fri, 05 Aug 2011 20:01:58 +0200 diod (1.0~pre49-1) unstable; urgency=low * New upstream release -- Євгеній Мещеряков Thu, 04 Aug 2011 19:39:51 +0200 diod (1.0~pre48-1) unstable; urgency=low * New upstream release -- Євгеній Мещеряков Fri, 29 Jul 2011 15:03:45 +0200 diod (1.0~pre47-1) unstable; urgency=low * New upstream release * Remove patches applied upstream: - fakeroot-checks.diff - spark-ftbfs.diff -- Євгеній Мещеряков Wed, 27 Jul 2011 09:57:34 +0200 diod (1.0~pre46-1) unstable; urgency=low * New upstream release * Build-conflict with valgrind on armel. It seems it is completely broken there * New patch: - spark-ftbfs.diff - fix testsuite failure on sparc (closes: #634889) -- Євгеній Мещеряков Thu, 21 Jul 2011 21:09:49 +0200 diod (1.0~pre45-3) unstable; urgency=low * Undo changes to build-depends field from last two releases: diod uses linux-specific FSUID, not available on kFreeBSD and Hurd * New patches: - fakeroot-checks.diff - skip some checks when run using fakeroot - memcheck-test-hack.diff - ignore memcheck error for now * Build-depend on valgrind where available -- Євгеній Мещеряков Wed, 20 Jul 2011 21:07:48 +0200 diod (1.0~pre45-2) unstable; urgency=low * s/freebsd/kfreebsd/ in debian/control * Don't build-depend on libwrap0-dev on Hurd -- Євгеній Мещеряков Tue, 19 Jul 2011 15:29:59 +0200 diod (1.0~pre45-1) unstable; urgency=low * New upstream release * Add Vcs-* entries to debian/control * Don't build-depend on libcap-dev on Hurd and FreeBSD, and on libmunge-dev on Hurd -- Євгеній Мещеряков Tue, 19 Jul 2011 14:34:54 +0200 diod (1.0~pre44-2) unstable; urgency=low * Change a license tag BSD-like => MIT-like -- Євгеній Мещеряков Mon, 18 Jul 2011 12:30:54 +0200 diod (1.0~pre44-1) unstable; urgency=low * Initial release (Closes: #633131) -- Євгеній Мещеряков Fri, 08 Jul 2011 20:47:25 +0200 debian/rules0000755000000000000000000000132012251444523010244 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with autotools_dev --parallel override_dh_auto_configure: dh_auto_configure -- CPPFLAGS="$(CPPFLAGS) $(shell pkg-config --cflags lua5.1)" --with-lua-suffix=5.1 override_dh_auto_install: dh_auto_install mv debian/diod/etc/auto.diod debian/diod/usr/share/doc/diod/examples debian/watch0000644000000000000000000000013212251444523010215 0ustar version=3 opts="uversionmangle=s/-/~/" https://github.com/chaos/diod/tags .*/tarball/(.+) debian/patches/0000755000000000000000000000000012251444523010617 5ustar debian/patches/tests-num-threads.diff0000644000000000000000000000025612251444523015043 0ustar --- a/tests/user/t10 +++ b/tests/user/t10 @@ -2,4 +2,4 @@ # args: users, threads, gettattrs, iterations, aname -./tattachmt 1 256 16 8 "$@" +./tattachmt 1 128 16 8 "$@" debian/patches/memcheck-test-hack.diff0000644000000000000000000000312312251444523015105 0ustar --- a/tests/misc/t10 +++ b/tests/misc/t10 @@ -1,5 +1,14 @@ #!/bin/bash -e TEST=$(basename $0 | cut -d- -f1) -./memcheck ./tnpsrv >$TEST.out 2>&1 -diff $TEST.exp $TEST.out >$TEST.diff +./memcheck ./tnpsrv >$TEST.out 2>&1 || true +diff $TEST.exp $TEST.out >$TEST.diff || true +if test -s $TEST.diff; then + echo "**********************" >&2 + echo "Memcheck failed. Diff:" >&2 + cat $TEST.diff >&2 + echo "**********************" >&2 + : > $TEST.diff + exit 77 +fi +exit 0 --- a/tests/misc/t13 +++ b/tests/misc/t13 @@ -1,5 +1,14 @@ #!/bin/bash -e TEST=$(basename $0 | cut -d- -f1) -./memcheck ./tnpsrv2 >$TEST.out 2>&1 -diff $TEST.exp $TEST.out >$TEST.diff +./memcheck ./tnpsrv2 >$TEST.out 2>&1 || true +diff $TEST.exp $TEST.out >$TEST.diff || true +if test -s $TEST.diff; then + echo "**********************" >&2 + echo "Memcheck failed. Diff:" >&2 + cat $TEST.diff >&2 + echo "**********************" >&2 + : > $TEST.diff + exit 77 +fi +exit 0 --- a/tests/misc/t15 +++ b/tests/misc/t15 @@ -12,7 +12,15 @@ TEST=$(basename $0 | cut -d- -f1) sockfile=$(mktemp) bg_test $sockfile & -./memcheck ../../diod/diod -n -f -e /tmp -l $sockfile -s >$TEST.out 2>&1 -diff $TEST.exp $TEST.out >$TEST.diff +./memcheck ../../diod/diod -n -f -e /tmp -l $sockfile -s >$TEST.out 2>&1 || true +diff $TEST.exp $TEST.out >$TEST.diff || true rm -f $sockfile wait %1 +if test -s $TEST.diff; then + echo "**********************" >&2 + echo "Memcheck failed. Diff:" >&2 + cat $TEST.diff >&2 + echo "**********************" >&2 + : > $TEST.diff + exit 77 +fi debian/patches/series0000644000000000000000000000005712251444523012036 0ustar memcheck-test-hack.diff tests-num-threads.diff debian/source/0000755000000000000000000000000012251444523010470 5ustar debian/source/format0000644000000000000000000000001412251444523011676 0ustar 3.0 (quilt) debian/diod.default0000644000000000000000000000023512251444523011455 0ustar # Defaults for diod # Change to true to enable the server at startup. DIOD_ENABLE=false # Additional options that are passed to the Daemon. DAEMON_ARGS="" debian/diod.init0000644000000000000000000000455212251444523011002 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: diod # Required-Start: $local_fs $remote_fs $named $network # Required-Stop: $local_fs $remote_fs $named $network # Should-Start: $syslog $time # Should-Stop: $syslog $time # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop diod (distributed I/O daemon). ### END INIT INFO PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="distributed I/O daemon" NAME=diod DAEMON=/usr/sbin/diod DAEMON_ARGS="" SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x $DAEMON ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME [ $DIOD_ENABLE = true ] || exit 0 # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start --quiet --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --exec $DAEMON } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac exit 0 debian/diod.dirs0000644000000000000000000000004112251444523010765 0ustar sbin usr/share/doc/diod/examples debian/docs0000644000000000000000000000002412251444523010037 0ustar NEWS README AUTHORS debian/diod.links0000644000000000000000000000015012251444523011145 0ustar usr/sbin/diodmount sbin/mount.diod usr/share/man/man8/diodmount.8.gz usr/share/man/man8/mount.diod.8.gz