nbd.git
18 years agor152: It's subversion now.
yoe [Fri, 10 Mar 2006 13:43:51 +0000 (13:43 +0000)]
r152: It's subversion now.

18 years agor151: Fix compile
yoe [Fri, 10 Mar 2006 13:38:51 +0000 (13:38 +0000)]
r151: Fix compile

18 years agor150: Build, but do not install, nbd-tester-client
yoe [Thu, 9 Mar 2006 22:20:24 +0000 (22:20 +0000)]
r150: Build, but do not install, nbd-tester-client

18 years agor149: Make the fact that The Hurd supports this protocol too a bit clearer
yoe [Thu, 9 Mar 2006 22:19:04 +0000 (22:19 +0000)]
r149: Make the fact that The Hurd supports this protocol too a bit clearer

18 years agor148: Make code warning-free
yoe [Thu, 9 Mar 2006 22:18:27 +0000 (22:18 +0000)]
r148: Make code warning-free

18 years agor147: Some code updates. Previous commit to HEAD was more of a backup, whereas
yoe [Thu, 9 Mar 2006 22:16:17 +0000 (22:16 +0000)]
r147: Some code updates. Previous commit to HEAD was more of a backup, whereas
this seems to actually work.

18 years agor146: Fix SNAFU
yoe [Tue, 31 Jan 2006 09:59:53 +0000 (09:59 +0000)]
r146: Fix SNAFU

18 years agor145: * Improve error handling
yoe [Tue, 31 Jan 2006 09:58:41 +0000 (09:58 +0000)]
r145: * Improve error handling
* Fix htonl call to say htonll instead (lesson: test network-using software on
  at least one little endian architecture :-)

18 years agor144: Add test client
yoe [Mon, 30 Jan 2006 22:15:44 +0000 (22:15 +0000)]
r144: Add test client

18 years agor141: Commit this before I accidentally remove it again..
yoe [Fri, 6 Jan 2006 17:03:10 +0000 (17:03 +0000)]
r141: Commit this before I accidentally remove it again..

18 years agor126: Make sure we never ever forget to set the date again.
yoe [Sun, 6 Nov 2005 08:04:52 +0000 (08:04 +0000)]
r126: Make sure we never ever forget to set the date again.

18 years agor124: Merge in changes to 2.8 branch, up to 2.8.1.
yoe [Fri, 28 Oct 2005 07:28:51 +0000 (07:28 +0000)]
r124: Merge in changes to 2.8 branch, up to 2.8.1.

18 years agor123: Make this version-agnostic
yoe [Thu, 27 Oct 2005 20:18:22 +0000 (20:18 +0000)]
r123: Make this version-agnostic

18 years agor117: Make this slightly useful
yoe [Wed, 26 Oct 2005 09:13:27 +0000 (09:13 +0000)]
r117: Make this slightly useful

18 years agor116: Explain takeover of maintenance, as in nbd-server.1.sgml.
yoe [Tue, 25 Oct 2005 17:49:21 +0000 (17:49 +0000)]
r116: Explain takeover of maintenance, as in nbd-server.1.sgml.

18 years agor115: Add doxygen file
yoe [Tue, 25 Oct 2005 17:36:53 +0000 (17:36 +0000)]
r115: Add doxygen file

18 years agor114: Fixes for copy-on-write from Maxim Syrchin (thanks!)
yoe [Tue, 25 Oct 2005 11:13:44 +0000 (11:13 +0000)]
r114: Fixes for copy-on-write from Maxim Syrchin (thanks!)

18 years agor113: GCC4 warning fixes
yoe [Tue, 25 Oct 2005 11:12:20 +0000 (11:12 +0000)]
r113: GCC4 warning fixes

18 years agor110: Incorporate patch from Maxim Syrchin to fix segfault if no auth file has been
yoe [Fri, 16 Sep 2005 10:00:52 +0000 (10:00 +0000)]
r110: Incorporate patch from Maxim Syrchin to fix segfault if no auth file has been
given.

18 years agor108: Fix examples
yoe [Thu, 7 Jul 2005 18:23:07 +0000 (18:23 +0000)]
r108: Fix examples

19 years agor104: Unbreak VPATH builds; release rc2
yoe [Wed, 16 Feb 2005 08:46:03 +0000 (08:46 +0000)]
r104: Unbreak VPATH builds; release rc2

19 years agor103: Check for the right symbols in nbd.h by compiling, rather than guessing on
yoe [Wed, 16 Feb 2005 08:38:00 +0000 (08:38 +0000)]
r103: Check for the right symbols in nbd.h by compiling, rather than guessing on
whether they'll be there on the basis of other, unrelated, symbols. Also, make
the error message that appears if we don't find what we need a bit more
helpful, and warn the user if a bad nbd.h is found locally but a good one is
provided system-wide.

19 years agor101: version number
yoe [Sun, 23 Jan 2005 01:48:14 +0000 (01:48 +0000)]
r101: version number

19 years agor100: Bring comment in sync with reality
yoe [Sun, 23 Jan 2005 01:46:28 +0000 (01:46 +0000)]
r100: Bring comment in sync with reality

19 years agor99: Endianness fix
yoe [Sun, 23 Jan 2005 01:44:40 +0000 (01:44 +0000)]
r99: Endianness fix

19 years agor98: Distribute manpages, do not generate them on every build.
yoe [Wed, 19 Jan 2005 15:59:48 +0000 (15:59 +0000)]
r98: Distribute manpages, do not generate them on every build.

19 years agor97: Make --enable-lfs non-optional. It's silly to not want it, anyway
yoe [Wed, 19 Jan 2005 15:59:07 +0000 (15:59 +0000)]
r97: Make --enable-lfs non-optional. It's silly to not want it, anyway

19 years agor96: Leftover error caught by ``make distcheck''
yoe [Wed, 19 Jan 2005 15:56:19 +0000 (15:56 +0000)]
r96: Leftover error caught by ``make distcheck''

19 years agor95: We should be (almost) ready for 2.8 now...
yoe [Wed, 19 Jan 2005 15:33:09 +0000 (15:33 +0000)]
r95: We should be (almost) ready for 2.8 now...

19 years agor94: Mimick updates to 2.7 branch
yoe [Fri, 17 Dec 2004 00:51:12 +0000 (00:51 +0000)]
r94: Mimick updates to 2.7 branch

19 years agor90: GLibify
yoe [Fri, 3 Dec 2004 02:29:35 +0000 (02:29 +0000)]
r90: GLibify

19 years agor89: Use a GHashTable instead of a self-written dynamically compiled array to remembe...
yoe [Tue, 16 Nov 2004 00:14:01 +0000 (00:14 +0000)]
r89: Use a GHashTable instead of a self-written dynamically compiled array to remember who our children are

19 years agor88: Add lfs.h to EXTRA_DIST, to make both 'make distcheck' and our precious users
yoe [Mon, 15 Nov 2004 23:34:58 +0000 (23:34 +0000)]
r88: Add lfs.h to EXTRA_DIST, to make both 'make distcheck' and our precious users
happy. Also, s/DISTCLEANFILES/CLEANFILES/g , as that is more where those
generated manpages belong.

19 years agor87: Re-sanitize log messages
yoe [Mon, 15 Nov 2004 23:15:52 +0000 (23:15 +0000)]
r87: Re-sanitize log messages

19 years agor86: Remove bugs. It works again now
yoe [Mon, 15 Nov 2004 23:09:29 +0000 (23:09 +0000)]
r86: Remove bugs. It works again now

19 years agor85: Add AM_MAINTAINER_MODE for my own sanity
yoe [Mon, 15 Nov 2004 23:08:30 +0000 (23:08 +0000)]
r85: Add AM_MAINTAINER_MODE for my own sanity

19 years agor82: Stop using global variables.
yoe [Thu, 14 Oct 2004 18:12:09 +0000 (18:12 +0000)]
r82: Stop using global variables.

UNTESTED CODE. DO NOT USE THIS. Instead, use a file release, or code from the
release_2_7 branch.

Of course, if you want to help me fix bugs, that's always welcome... ;-)

19 years agor81: Ignore generated files
yoe [Thu, 14 Oct 2004 16:44:06 +0000 (16:44 +0000)]
r81: Ignore generated files

19 years agor80: Make it compile again
yoe [Thu, 14 Oct 2004 16:41:34 +0000 (16:41 +0000)]
r80: Make it compile again

19 years agor78: Make inetd mode actually work (Thanks, Alan Curry)
yoe [Sat, 24 Jul 2004 08:56:34 +0000 (08:56 +0000)]
r78: Make inetd mode actually work (Thanks, Alan Curry)

19 years agor76: Don't free the auth_file; it's never malloc()'ed
yoe [Sat, 24 Jul 2004 08:41:39 +0000 (08:41 +0000)]
r76: Don't free the auth_file; it's never malloc()'ed

19 years agor75: Portability: include <sys/param.h> before checking for <sys/mount.h> to avoid
yoe [Sun, 27 Jun 2004 11:39:16 +0000 (11:39 +0000)]
r75: Portability: include <sys/param.h> before checking for <sys/mount.h> to avoid
configure warnings on FreeBSD.

19 years agor74: * Added checks for GLib (not used yet, but will be in this release)
yoe [Sun, 27 Jun 2004 11:34:55 +0000 (11:34 +0000)]
r74: * Added checks for GLib (not used yet, but will be in this release)
* Improved checks for nbd.h to
  - check whether the file is recent enough
  - error out of configure if it isn't found

19 years agor73: Fix AM_INIT_AUTOMAKE to not have any arguments
yoe [Sun, 20 Jun 2004 07:40:08 +0000 (07:40 +0000)]
r73: Fix AM_INIT_AUTOMAKE to not have any arguments
Fix AC_ARG_ENABLE calls to work as expected when --disable-* is used.

19 years agor66: Some initial cleanups. More are probably needed.
yoe [Sat, 12 Jun 2004 09:31:26 +0000 (09:31 +0000)]
r66: Some initial cleanups. More are probably needed.

19 years agor65: Clean up LFS defines
yoe [Sun, 23 May 2004 09:55:43 +0000 (09:55 +0000)]
r65: Clean up LFS defines

19 years agor64: Add missing closing bracket
yoe [Sun, 23 May 2004 09:54:39 +0000 (09:54 +0000)]
r64: Add missing closing bracket

19 years agor63: Code style cleanup
yoe [Mon, 17 May 2004 21:57:15 +0000 (21:57 +0000)]
r63: Code style cleanup

19 years agor62: close possible format string attack
yoe [Sun, 16 May 2004 20:21:35 +0000 (20:21 +0000)]
r62: close possible format string attack

19 years agor61: Cleanup after audit. Thanks, Steve!
yoe [Thu, 13 May 2004 21:35:31 +0000 (21:35 +0000)]
r61: Cleanup after audit. Thanks, Steve!

19 years agor60: Update documentation to reflect reality.
yoe [Thu, 6 May 2004 11:25:43 +0000 (11:25 +0000)]
r60: Update documentation to reflect reality.

19 years agor59: clean up after snprintf; make the difffilename buffer large enough.
yoe [Thu, 6 May 2004 11:17:46 +0000 (11:17 +0000)]
r59: clean up after snprintf; make the difffilename buffer large enough.

19 years agor58: Ewww. Don't use sprintf, it's ugly. Especially if user input is involved.
yoe [Wed, 5 May 2004 12:03:18 +0000 (12:03 +0000)]
r58: E Don't use sprintf, it's ugly. Especially if user input is involved.

19 years agor57: Fix multi-file option, and fix its documentation
yoe [Sat, 1 May 2004 07:48:23 +0000 (07:48 +0000)]
r57: Fix multi-file option, and fix its documentation

20 years agor56: check for BLKGETSIZE anyway, because it might not exist (and does not,
yoe [Fri, 23 Apr 2004 18:41:38 +0000 (18:41 +0000)]
r56: check for BLKGETSIZE anyway, because it might not exist (and does not,
on FreeBSD)

20 years agor55: Rename configure.in to configure.ac, and remove an ugly warning.
yoe [Fri, 23 Apr 2004 17:40:04 +0000 (17:40 +0000)]
r55: Rename configure.in to configure.ac, and remove an ugly warning.

20 years agor54: - Unbreak compilation
yoe [Wed, 21 Apr 2004 22:21:51 +0000 (22:21 +0000)]
r54: - Unbreak compilation
- portability: The Hurd doesn't have <sys/mount.h> or ioctls. They're
  not essential to us, so #ifdef out the code that uses them if they
  are not available.

20 years agor53: Move the #include <cliserv.h> to the top, to allow configure's
yoe [Sun, 4 Apr 2004 11:04:52 +0000 (11:04 +0000)]
r53: Move the #include <cliserv.h> to the top, to allow configure's
--enable-lfs to work.

20 years agor50: Whoops. This actually had to be committed to the virthost branch,
yoe [Wed, 18 Feb 2004 19:24:46 +0000 (19:24 +0000)]
r50: Whoops. This actually had to be committed to the virthost branch,
instead of to HEAD. Reversed it.

20 years agor49: Doxygenified the source, and started modularizing it. Lots of work
yoe [Wed, 11 Feb 2004 10:22:50 +0000 (10:22 +0000)]
r49: Doxygenified the source, and started modularizing it. Lots of work
still to do, but we'll eventually arrive somewhere.

20 years agor48: Fixed a bug in configure.in that broke detection of <linux/nbd.h>
yoe [Wed, 11 Feb 2004 10:21:58 +0000 (10:21 +0000)]
r48: Fixed a bug in configure.in that broke detection of <linux/nbd.h>

20 years agor46: Whoops
yoe [Wed, 28 Jan 2004 16:44:37 +0000 (16:44 +0000)]
r46: Whoops

20 years agor45: sgml fixup
yoe [Tue, 27 Jan 2004 23:47:31 +0000 (23:47 +0000)]
r45: sgml fixup

20 years agor44: doesn't belong in version control.
yoe [Tue, 27 Jan 2004 20:20:15 +0000 (20:20 +0000)]
r44: doesn't belong in version control.

20 years agor43: Switched to using automake instead of a home-grown Makefile.in; should help me
yoe [Tue, 27 Jan 2004 20:07:59 +0000 (20:07 +0000)]
r43: Switched to using automake instead of a home-grown Makefile.in; should help me
get rid of the mistakes I made with `make dist' in the past.

20 years agor42: Reverse the header-checking logic: use a local nbd.h and fall back to
yoe [Tue, 23 Dec 2003 20:33:43 +0000 (20:33 +0000)]
r42: Reverse the header-checking logic: use a local nbd.h and fall back to
<linux/nbd.h> if it isn't available, instead of the other way around.

20 years agor41: some build fixups. v2.6.
yoe [Mon, 27 Oct 2003 12:25:21 +0000 (12:25 +0000)]
r41: some build fixups. v2.6.

20 years agor40: config.h.in, configure.in: get rid of malloc() and realloc()
yoe [Thu, 16 Oct 2003 13:08:17 +0000 (13:08 +0000)]
r40: config.h.in, configure.in: get rid of malloc() and realloc()
tests. They test whether malloc behaves as expected when doign
something we don't do anyway. sf.net bug#824073
nbd-server.c:
* realloc() the right way. sf.net bug#824092
* incorporated parts of patch#815093 (some parts broke things
  which weren't always compiled-in, so didn't do those)

20 years agor39: Oops
yoe [Fri, 10 Oct 2003 12:46:59 +0000 (12:46 +0000)]
r39: Oops

20 years agor38: configure.in:
yoe [Fri, 10 Oct 2003 12:45:21 +0000 (12:45 +0000)]
r38: configure.in:
* Added extra checks as suggested by autoscan
* Added --enable-lfs option, to avoid having to play with CFLAGS
config.h.in:
* Updated
nbd-server.c:
* Rectify type of mainloop::size_host, closing sf.net bugs #
  814435 and 817385
* Added socket option SO_KEEPALIVE, so that keepalive packages
  are being sent after "a while" (still two hours with the
  Linux kernel's default settings, but oh well). Closes sf.net
  bug # 819235.
* fclose() the PID file after writing to it, so that other
  processes can actually read our PID from that file. Makes it
  a bit useful, too.
cliserv.h:
* Support for --enable-lfs option.

20 years agor37: CRITICAL BUGFIX: after forking, reset child_arraysize to zero to make
yoe [Mon, 29 Sep 2003 17:57:44 +0000 (17:57 +0000)]
r37: CRITICAL BUGFIX: after forking, reset child_arraysize to zero to make
sure nbd-server doesn't go berserk and start sending SIGTERM to all
processes instead of just its own clients, when killed.

20 years agor36: removed a syntax error, and made the manpage internally consistent.
yoe [Tue, 2 Sep 2003 13:01:45 +0000 (13:01 +0000)]
r36: removed a syntax error, and made the manpage internally consistent.

20 years agor35: Added an option to allow for selecting the .allow file on the command
yoe [Tue, 2 Sep 2003 12:47:49 +0000 (12:47 +0000)]
r35: Added an option to allow for selecting the .allow file on the command
line, instead of relying on compile-time directive.

20 years agor34: Fixed one minor bug
yoe [Mon, 25 Aug 2003 11:18:30 +0000 (11:18 +0000)]
r34: Fixed one minor bug

20 years agor33: use PACKAGE_VERSION to determine what version we are (and output that
yoe [Thu, 21 Aug 2003 13:31:56 +0000 (13:31 +0000)]
r33: use PACKAGE_VERSION to determine what version we are (and output that
in the usage message). Did that in nbd-server too, but forgot to tell
that in the CVS message :-)

20 years agor32: keep track of children and send them SIGTERM if someone sends us that;
yoe [Thu, 21 Aug 2003 13:31:04 +0000 (13:31 +0000)]
r32: keep track of children and send them SIGTERM if someone sends us that;
invoke daemon() before we do anything.

20 years agor31: Relicensed. I've decided to migrate away from FDL licenses, since I
yoe [Sun, 20 Jul 2003 09:46:25 +0000 (09:46 +0000)]
r31: Relicensed. I've decided to migrate away from FDL licenses, since I
agree with the major part of debian-legal's stance on it.

20 years agor30: Winnbd code from Folkert van Heusden <folkert@vanheusden.com>
pavel [Sun, 13 Jul 2003 21:23:55 +0000 (21:23 +0000)]
r30: Winnbd code from Folkert van Heusden <folkert@vanheusden.com>

20 years agor29: NBD server for Windows 2000 ---- winzip format
acrux [Fri, 23 May 2003 15:37:41 +0000 (15:37 +0000)]
r29: NBD server for Windows 2000 ---- winzip format

20 years agor28: A brief README file of nbd server for windows 2000.
acrux [Fri, 23 May 2003 15:09:23 +0000 (15:09 +0000)]
r28: A brief README file of nbd server for windows 2000.

21 years agor27: Rewrote the way we define OFFT_MAX, which would otherwise break on
yoe [Tue, 15 Apr 2003 01:48:16 +0000 (01:48 +0000)]
r27: Rewrote the way we define OFFT_MAX, which would otherwise break on
64bit architectures.

21 years agor26: Modified write() to be send().
yoe [Thu, 14 Nov 2002 22:20:54 +0000 (22:20 +0000)]
r26: Modified write() to be send().
Rationale: when #define'ing _LARGEFILE_SOURCE, and _FILE_OFFSET_BITS
to 64 so as to get Large File Support, some file-related syscalls are
modified to their 64 bit counterparts; write() is one of them. And
there's no such thing as a 'large' socket, which has caused nbd-server
to hang in the write() call. Changing the write() to a send() fixed
this (and I hate ugly bugs. This one took me, like, three days ;-)

21 years agor25: * Added Large File Support to nbd-server.
yoe [Sun, 20 Oct 2002 13:55:41 +0000 (13:55 +0000)]
r25: * Added Large File Support to nbd-server.
* Added -a option to nbd-server's manpage (and removed erroneous '-c
  this' entry)

21 years agor24: COPYONWRITE had horrible coding style. Cleanups still needed.
pavel [Mon, 30 Sep 2002 18:12:10 +0000 (18:12 +0000)]
r24: COPYONWRITE had horrible coding style. Cleanups still needed.

21 years agor23: Automagically switch to readonly mode when device is readonly. Patch
pavel [Sat, 21 Sep 2002 09:47:38 +0000 (09:47 +0000)]
r23: Automagically switch to readonly mode when device is readonly. Patch
by Alberto Marmodoro.

21 years agor22: Reap zombies; make errormsg bit more helpful when connection is
yoe [Wed, 11 Sep 2002 15:51:32 +0000 (15:51 +0000)]
r22: Reap zombies; make errormsg bit more helpful when connection is
dropped before anything is sent.

22 years agor21: Client and server version both set to 2.0 so they are now in step with each...
rohan [Mon, 25 Mar 2002 11:46:37 +0000 (11:46 +0000)]
r21:  Client and server version both set to 2.0 so they are now in step with each other

22 years agor20: Removed since its autogenerated. Will generate it in future for each tar ball...
rohan [Mon, 25 Mar 2002 11:28:55 +0000 (11:28 +0000)]
r20: Removed since its autogenerated. Will generate it in future for each tar ball before release

22 years agor19: Bug fixes for 64bit operation from Anton Altaparmakov
rohan [Sun, 24 Mar 2002 20:23:38 +0000 (20:23 +0000)]
r19: Bug fixes for 64bit operation from Anton Altaparmakov

22 years agor18: o Added configure script at suggestion of Anton Altaparmakov for people
rohan [Sun, 24 Mar 2002 20:12:19 +0000 (20:12 +0000)]
r18:  o Added configure script at suggestion of Anton Altaparmakov for people
   without autoconf installed.

22 years agor17: Option to timeout after certain time of inactivity.
pavel [Mon, 4 Feb 2002 12:08:26 +0000 (12:08 +0000)]
r17: Option to timeout after certain time of inactivity.

22 years agor16: Set SO_REUSEADDR socket option to nbd-server
yoe [Mon, 28 Jan 2002 23:05:08 +0000 (23:05 +0000)]
r16: Set SO_REUSEADDR socket option to nbd-server

22 years agor15: Allow bigger requests and kill ugly warning.
pavel [Fri, 18 Jan 2002 17:01:59 +0000 (17:01 +0000)]
r15: Allow bigger requests and kill ugly warning.

22 years agor14: Explained use of nbd_server.allow file
yoe [Wed, 2 Jan 2002 22:50:39 +0000 (22:50 +0000)]
r14: Explained use of nbd_server.allow file

22 years agor13: Sanitized "AUTHORS" section. Sorry Pavel ;-)
yoe [Wed, 5 Dec 2001 19:50:38 +0000 (19:50 +0000)]
r13: Sanitized "AUTHORS" section. Sorry Pavel ;-)

22 years agor12: Removed template-clutter
yoe [Sun, 18 Nov 2001 09:32:28 +0000 (09:32 +0000)]
r12: Removed template-clutter
Changed reference to linux to be politically a bit more correct, and
included reference to The Hurd as a client.

22 years agor11: Manpages from Wouter Verhelst <wouter@debian.org>.
pavel [Thu, 20 Sep 2001 21:07:16 +0000 (21:07 +0000)]
r11: Manpages from Wouter Verhelst <wouter@debian.org>.

22 years agor10: Changes from Wouter Verhelst to use nbd.h from linux tree, instead of
pavel [Wed, 13 Jun 2001 09:58:44 +0000 (09:58 +0000)]
r10: Changes from Wouter Verhelst to use nbd.h from linux tree, instead of
nonexistent local copy.

23 years agor9: Support for changing blocksize.
pavel [Wed, 28 Feb 2001 13:39:45 +0000 (13:39 +0000)]
r9: Support for changing blocksize.

23 years agor8: Makefile.in is needed to build nbd.
pavel [Wed, 28 Feb 2001 13:38:38 +0000 (13:38 +0000)]
r8: Makefile.in is needed to build nbd.