nbd.git
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.

23 years agor7: Added gzipped nbd code from marc <marc@jade.cs.uct.ac.za>.
pavel [Sun, 10 Dec 2000 21:37:05 +0000 (21:37 +0000)]
r7: Added gzipped nbd code from marc <marc@jade.cs.uct.ac.za>.

23 years agor3: Initial revision
pavel [Fri, 27 Oct 2000 07:41:13 +0000 (07:41 +0000)]
r3: Initial revision