nbd.git
15 years agoBuild system fixes and documentation
Wouter Verhelst [Thu, 1 Jan 2009 12:44:46 +0000 (13:44 +0100)]
Build system fixes and documentation

Should make compiling on non-Linux operating systems not quite as painful

15 years agoPrepare for github.com releases
Wouter Verhelst [Thu, 1 Jan 2009 12:15:55 +0000 (13:15 +0100)]
Prepare for github.com releases

They have this nice feature that allows me to tag a file if I want to
release it. That's all nice and dandy, but it does require that the
version control system contains _everything_ -- including autogenerated
files.

Not entirely happy about that, but well.

15 years agoDon't track .o files
Wouter Verhelst [Sat, 27 Dec 2008 00:09:04 +0000 (01:09 +0100)]
Don't track .o files

Don't track .o files

15 years agoImprove error handling
Wouter Verhelst [Wed, 24 Dec 2008 15:04:59 +0000 (16:04 +0100)]
Improve error handling

If a config file does not even contain a single session,
g_key_file_get_start_group() will return NULL, resulting in a segfault
if we feed that to strcmp. Check for that possibility.

This closes Fedora bug #454099, BTW. Merry christmas ;-)

15 years agor344: Fixes suggested by Pavel Macheck
yoe [Fri, 5 Dec 2008 22:43:38 +0000 (22:43 +0000)]
r344: Fixes suggested by Pavel Macheck

15 years agor343: Remove this (outdated) code:
yoe [Mon, 13 Oct 2008 16:58:08 +0000 (16:58 +0000)]
r343: Remove this (outdated) code:
- Nobody has looked after it since before I started maintaining nbd
- The zipfile is corrupt
- The 'plain' nbd-server will work under cygwin, and has more features
- If someone wants to fix it, they can still get it from a revision
  before this one.

15 years agor342: Use right printf() format string
yoe [Mon, 25 Aug 2008 11:58:01 +0000 (11:58 +0000)]
r342: Use right printf() format string

15 years agor340: Fix printing of 64bit integers; patch by Brad Allen
yoe [Tue, 12 Aug 2008 20:22:01 +0000 (20:22 +0000)]
r340: Fix printing of 64bit integers; patch by Brad Allen

15 years agor339: Explicitly set the client socket to nonblocking, since some systems
yoe [Thu, 24 Jul 2008 11:24:40 +0000 (11:24 +0000)]
r339: Explicitly set the client socket to nonblocking, since some systems
apparently inherit socket flags through accept().

15 years agor338: Oops, this is work-in-progress, remove
yoe [Wed, 18 Jun 2008 10:46:40 +0000 (10:46 +0000)]
r338: Oops, this is work-in-progress, remove

15 years agor337: Check multi-file export in 'make check', too; and tell automake that we have...
yoe [Wed, 18 Jun 2008 10:38:22 +0000 (10:38 +0000)]
r337: Check multi-file export in 'make check', too; and tell automake that we have multiple checks rather than having it think there's only one

15 years agor336: Cut out klcc usage. It's broken, silly to even try.
yoe [Thu, 15 May 2008 19:27:34 +0000 (19:27 +0000)]
r336: Cut out klcc usage. It's broken, silly to even try.

15 years agor335: Allow disabling of klcc
yoe [Sun, 4 May 2008 15:02:18 +0000 (15:02 +0000)]
r335: Allow disabling of klcc

15 years agor334: Re-sync table indexes
yoe [Thu, 1 May 2008 19:05:35 +0000 (19:05 +0000)]
r334: Re-sync table indexes

16 years agor332: open() the device upon connecting after a fork(), so that the partition table...
yoe [Wed, 2 Apr 2008 13:15:57 +0000 (13:15 +0000)]
r332: open() the device upon connecting after a fork(), so that the partition table will be read

16 years agor331: Add code to detect whether a device is connected
yoe [Mon, 31 Mar 2008 08:18:51 +0000 (08:18 +0000)]
r331: Add code to detect whether a device is connected

16 years agor329: Wasn't supposed to be part of this commit
yoe [Mon, 17 Mar 2008 10:31:01 +0000 (10:31 +0000)]
r329: Wasn't supposed to be part of this commit

16 years agor328: Oops, don't forget to change this number
yoe [Mon, 17 Mar 2008 10:28:39 +0000 (10:28 +0000)]
r328: Oops, don't forget to change this number

16 years agor327: Remove autoreadonly option. It was an error to make it a config file
yoe [Mon, 17 Mar 2008 10:25:43 +0000 (10:25 +0000)]
r327: Remove autoreadonly option. It was an error to make it a config file
option in the first place; the "autoreadonly" flag is set when the
server decides that it cannot write to anything and thus automatically
switches readonly on; setting it from config therefore is silly. Also
remove the documentation of this option.

16 years agor326: Don't require read-write access to base file when doing copy on write
yoe [Mon, 17 Mar 2008 10:20:01 +0000 (10:20 +0000)]
r326: Don't require read-write access to base file when doing copy on write

16 years agor325: Avoid unnecessary wakeups
yoe [Mon, 17 Mar 2008 09:44:36 +0000 (09:44 +0000)]
r325: Avoid unnecessary wakeups

16 years agor324: Fix sdp section
yoe [Sun, 16 Mar 2008 11:02:26 +0000 (11:02 +0000)]
r324: Fix sdp section

16 years agor321: And uClibc, too
yoe [Fri, 14 Mar 2008 12:43:11 +0000 (12:43 +0000)]
r321: And uClibc, too

16 years agor320: Fedora contains nbd, see https://admin.fedoraproject.org/pkgdb/packages/name/nbd
yoe [Fri, 14 Mar 2008 12:39:28 +0000 (12:39 +0000)]
r320: Fedora contains nbd, see https://admin.fedoraproject.org/pkgdb/packages/name/nbd

16 years agor319: Merge from trunk
yoe [Fri, 14 Mar 2008 12:30:24 +0000 (12:30 +0000)]
r319: Merge from trunk

16 years agor317: Update status of deadlock issue
yoe [Fri, 14 Mar 2008 12:22:05 +0000 (12:22 +0000)]
r317: Update status of deadlock issue

16 years agor311: Document undocumented options
yoe [Sun, 18 Nov 2007 09:41:48 +0000 (09:41 +0000)]
r311: Document undocumented options

16 years agor310: Fix a few typos in the docs
yoe [Wed, 14 Nov 2007 20:57:27 +0000 (20:57 +0000)]
r310: Fix a few typos in the docs

16 years agor308: Fix segfault when exporting more than one device.
yoe [Wed, 14 Nov 2007 19:19:24 +0000 (19:19 +0000)]
r308: Fix segfault when exporting more than one device.

16 years agor307: Sanify name, getting it in sync with documentation, too.
yoe [Wed, 7 Nov 2007 18:39:50 +0000 (18:39 +0000)]
r307: Sanify name, getting it in sync with documentation, too.
Thanks, Tilman Koschnick

16 years agor306: Make sure this compiles on other systems than just Linux
yoe [Sun, 4 Nov 2007 09:01:59 +0000 (09:01 +0000)]
r306: Make sure this compiles on other systems than just Linux

16 years agor305: Use constants rather than their value
yoe [Tue, 30 Oct 2007 15:14:31 +0000 (15:14 +0000)]
r305: Use constants rather than their value

16 years agor304: Documentation fixes: add -C to synopsis (Corey Minyard); update stuff
yoe [Tue, 30 Oct 2007 10:35:12 +0000 (10:35 +0000)]
r304: Documentation fixes: add -C to synopsis (Corey Minyard); update stuff
about multiple-file option to reflect current reality.

16 years agor301: Make this compile warning-free, too
yoe [Fri, 26 Oct 2007 20:32:01 +0000 (20:32 +0000)]
r301: Make this compile warning-free, too

16 years agor300: Remove all GCC warnings
yoe [Fri, 26 Oct 2007 20:25:45 +0000 (20:25 +0000)]
r300: Remove all GCC warnings

16 years agor299: Make -Werror work again
yoe [Fri, 26 Oct 2007 20:17:54 +0000 (20:17 +0000)]
r299: Make -Werror work again

16 years agor298: Oops
yoe [Fri, 26 Oct 2007 20:00:28 +0000 (20:00 +0000)]
r298: Oops

16 years agor297: Fix stupid errors
yoe [Fri, 26 Oct 2007 19:59:47 +0000 (19:59 +0000)]
r297: Fix stupid errors

16 years agor296: Documentation updates
yoe [Fri, 26 Oct 2007 18:01:51 +0000 (18:01 +0000)]
r296: Documentation updates

16 years agor295: Last bits from Corey; also, apply patch to set listenaddr (documentation follows)
yoe [Fri, 26 Oct 2007 17:50:31 +0000 (17:50 +0000)]
r295: Last bits from Corey; also, apply patch to set listenaddr (documentation follows)

16 years agor294: Delay daemon() call as long as possible, and modify error handling slightly to
yoe [Fri, 26 Oct 2007 12:31:33 +0000 (12:31 +0000)]
r294: Delay daemon() call as long as possible, and modify error handling slightly to
be more verbose on failure. Modified from Corey Minyard (as was my previous
commit)

16 years agor293: Handle incorrect user- or groupnames correctly
yoe [Fri, 26 Oct 2007 12:12:58 +0000 (12:12 +0000)]
r293: Handle incorrect user- or groupnames correctly

16 years agor292: Add note about deadline scheduler
yoe [Tue, 23 Oct 2007 10:54:15 +0000 (10:54 +0000)]
r292: Add note about deadline scheduler

16 years agor291: make the build work, again
yoe [Mon, 22 Oct 2007 00:46:11 +0000 (00:46 +0000)]
r291: make the build work, again

16 years agor290: Reword a troublesome sentence, and document the sdp support
yoe [Wed, 17 Oct 2007 09:52:50 +0000 (09:52 +0000)]
r290: Reword a troublesome sentence, and document the sdp support

16 years agor289: Add experimental support for the SDP protocol
yoe [Wed, 17 Oct 2007 09:34:27 +0000 (09:34 +0000)]
r289: Add experimental support for the SDP protocol

16 years agor288: Don't forget to kill nbd-server the second time; thanks to Patrice Dumas
yoe [Wed, 17 Oct 2007 09:01:22 +0000 (09:01 +0000)]
r288: Don't forget to kill nbd-server the second time; thanks to Patrice Dumas

16 years agor287: Fixes from Tefnet <developers@tefnet.pl>
yoe [Thu, 27 Sep 2007 09:00:16 +0000 (09:00 +0000)]
r287: Fixes from Tefnet <developers@tefnet.pl>

16 years agor286: Oops, version number shouldn't be in subversion
yoe [Wed, 19 Sep 2007 02:08:40 +0000 (02:08 +0000)]
r286: Oops, version number shouldn't be in subversion

16 years agor285: Move first do_run command up slightly
yoe [Wed, 19 Sep 2007 02:07:58 +0000 (02:07 +0000)]
r285: Move first do_run command up slightly

16 years agor283: Don't dereference a command if it's empty
yoe [Tue, 18 Sep 2007 12:32:20 +0000 (12:32 +0000)]
r283: Don't dereference a command if it's empty

16 years agor282: Don't dereference stuff if we haven't set it. Patch by Scott Balneaves from...
yoe [Tue, 18 Sep 2007 11:53:06 +0000 (11:53 +0000)]
r282: Don't dereference stuff if we haven't set it. Patch by Scott Balneaves from Ubuntu

16 years agor281: Revised nbd-client timeout support
snitm [Sat, 25 Aug 2007 22:43:44 +0000 (22:43 +0000)]
r281: Revised nbd-client timeout support

16 years agor280: Revert recent nbd-client timeout changes; revised changes to follow
snitm [Sat, 25 Aug 2007 22:35:53 +0000 (22:35 +0000)]
r280: Revert recent nbd-client timeout changes; revised changes to follow

16 years agor279: * Mention -persist in nbd-client manpage
yoe [Fri, 24 Aug 2007 21:47:36 +0000 (21:47 +0000)]
r279: * Mention -persist in nbd-client manpage
* Implement support for NBD_SET_TIMEOUT in anticipation of it being
  accepted into the kernel. #ifdef'ed out for the time being, anyway.

16 years agor278: Set group _after_ setting user, since setting the user may make us lose rights...
yoe [Sun, 19 Aug 2007 16:05:48 +0000 (16:05 +0000)]
r278: Set group _after_ setting user, since setting the user may make us lose rights to set a group

16 years agor274: Patch by Corey Minyard to set a device read-only at negotiate time
yoe [Tue, 14 Aug 2007 06:14:09 +0000 (06:14 +0000)]
r274: Patch by Corey Minyard to set a device read-only at negotiate time

16 years agor272: Fix documentation layout
yoe [Thu, 26 Jul 2007 14:38:04 +0000 (14:38 +0000)]
r272: Fix documentation layout

16 years agor271: update this document, too
yoe [Thu, 26 Jul 2007 14:32:12 +0000 (14:32 +0000)]
r271: update this document, too

16 years agor270: Implement prerun and postrun options
yoe [Thu, 26 Jul 2007 14:30:45 +0000 (14:30 +0000)]
r270: Implement prerun and postrun options

16 years agor269: Update README to reflect reality
yoe [Thu, 19 Jul 2007 10:00:47 +0000 (10:00 +0000)]
r269: Update README to reflect reality

16 years agor267: Really fix the segfault. Hand the brown paper bag, please
yoe [Thu, 19 Jul 2007 09:05:18 +0000 (09:05 +0000)]
r267: Really fix the segfault. Hand the brown paper bag, please

16 years agor266: mktemp provides an absolute path...
yoe [Thu, 19 Jul 2007 09:04:27 +0000 (09:04 +0000)]
r266: mktemp provides an absolute path...

16 years agor265: Check whether the program runs with a config file rather than stuff on the...
yoe [Thu, 19 Jul 2007 08:50:47 +0000 (08:50 +0000)]
r265: Check whether the program runs with a config file rather than stuff on the cmdline, too

16 years agor264: Fix segfault
yoe [Sun, 8 Jul 2007 10:01:31 +0000 (10:01 +0000)]
r264: Fix segfault

16 years agor263: Ignore generated manpage nbd-server.5
yoe [Sun, 8 Jul 2007 09:55:49 +0000 (09:55 +0000)]
r263: Ignore generated manpage nbd-server.5

16 years agor262: Add a debugging switch on the cmdline
yoe [Sun, 8 Jul 2007 09:51:38 +0000 (09:51 +0000)]
r262: Add a debugging switch on the cmdline

16 years agor261: Fix inetd mode
yoe [Mon, 25 Jun 2007 13:30:57 +0000 (13:30 +0000)]
r261: Fix inetd mode

16 years agor260: Fix usage of peername, patch by gad@jetcom.org
yoe [Fri, 15 Jun 2007 21:38:51 +0000 (21:38 +0000)]
r260: Fix usage of peername, patch by gad@jetcom.org

16 years agor259: Merge r258
yoe [Wed, 13 Jun 2007 11:07:26 +0000 (11:07 +0000)]
r259: Merge r258

16 years agor255: Oops
yoe [Mon, 4 Jun 2007 01:13:10 +0000 (01:13 +0000)]
r255: Oops

16 years agor254: Don't include symlinks to stuff which might be somewhere entirely different
yoe [Mon, 4 Jun 2007 01:10:13 +0000 (01:10 +0000)]
r254: Don't include symlinks to stuff which might be somewhere entirely different

16 years agor253: Revert r231; it's causing more problems than it attempts to solve
yoe [Mon, 4 Jun 2007 01:01:20 +0000 (01:01 +0000)]
r253: Revert r231; it's causing more problems than it attempts to solve

17 years agor243: Merge r242
yoe [Sat, 3 Mar 2007 07:41:47 +0000 (07:41 +0000)]
r243: Merge r242

17 years agor241: Merge r240 from trunk
yoe [Mon, 12 Feb 2007 12:33:26 +0000 (12:33 +0000)]
r241: Merge r240 from trunk

17 years agor238: Branch 2.9 to allow starting development on 2.10
yoe [Tue, 30 Jan 2007 12:55:09 +0000 (12:55 +0000)]
r238: Branch 2.9 to allow starting development on 2.10

17 years agor236: Ignore more stuff, and don't forget to add the INSTALL file
yoe [Tue, 30 Jan 2007 12:52:21 +0000 (12:52 +0000)]
r236: Ignore more stuff, and don't forget to add the INSTALL file

17 years agor235: Oops
yoe [Sat, 27 Jan 2007 23:57:44 +0000 (23:57 +0000)]
r235: Oops

17 years agor234: Add manpage
yoe [Sat, 27 Jan 2007 23:56:16 +0000 (23:56 +0000)]
r234: Add manpage

17 years agor233: Fix 64bit stuff (again)
yoe [Sat, 27 Jan 2007 23:53:04 +0000 (23:53 +0000)]
r233: Fix 64bit stuff (again)

17 years agor232: * Try and fix the test for NBD_H
yoe [Wed, 24 Jan 2007 13:18:56 +0000 (13:18 +0000)]
r232: * Try and fix the test for NBD_H
* Include checks for -lsocket, -lnsl, and -lresolv, to allow for
  compilation on Solaris.

17 years agor231: Make client sockets non-blocking, too.
yoe [Tue, 23 Jan 2007 17:18:29 +0000 (17:18 +0000)]
r231: Make client sockets non-blocking, too.

17 years agor230: Add test for even more recent kernels
yoe [Wed, 27 Dec 2006 18:59:05 +0000 (18:59 +0000)]
r230: Add test for even more recent kernels

17 years agor229: Turn this into a slightly better Makefile, as suggested by Mike Frysinger
yoe [Wed, 27 Dec 2006 18:51:57 +0000 (18:51 +0000)]
r229: Turn this into a slightly better Makefile, as suggested by Mike Frysinger

17 years agor228: Fix detection of host system, patch by Mike Frysinger <vapier@gentoo.org>
yoe [Wed, 27 Dec 2006 18:48:19 +0000 (18:48 +0000)]
r228: Fix detection of host system, patch by Mike Frysinger <vapier@gentoo.org>

17 years agor226: Fix memory leakage: we need to allocate only one hash table for all our
yoe [Wed, 27 Dec 2006 13:47:49 +0000 (13:47 +0000)]
r226: Fix memory leakage: we need to allocate only one hash table for all our
children, not one per listening port...

17 years agor225: Fix null pointer, patch by Johan Myreen
yoe [Wed, 27 Dec 2006 13:46:26 +0000 (13:46 +0000)]
r225: Fix null pointer, patch by Johan Myreen

17 years agor224: Distribute INSTALL and simple_test, too
yoe [Wed, 27 Dec 2006 13:39:25 +0000 (13:39 +0000)]
r224: Distribute INSTALL and simple_test, too

17 years agor223: Emit data about throughput speed
yoe [Wed, 27 Dec 2006 13:39:02 +0000 (13:39 +0000)]
r223: Emit data about throughput speed

17 years agor222: * Clean up temporary files after we quit
yoe [Wed, 27 Dec 2006 13:37:37 +0000 (13:37 +0000)]
r222: * Clean up temporary files after we quit
* Use absolute pathname rather than a relative one

17 years agor219: Support checking on devel builds, too.
yoe [Mon, 6 Nov 2006 17:13:16 +0000 (17:13 +0000)]
r219: Support checking on devel builds, too.

17 years agor218: Err, do it at the right place :)
yoe [Mon, 6 Nov 2006 17:10:37 +0000 (17:10 +0000)]
r218: Err, do it at the right place :)

17 years agor217: Make sure no config file is unadvertently parsed. We won't need that.
yoe [Mon, 6 Nov 2006 17:09:41 +0000 (17:09 +0000)]
r217: Make sure no config file is unadvertently parsed. We won't need that.

17 years agor216: Update copyright notice
yoe [Mon, 6 Nov 2006 16:58:21 +0000 (16:58 +0000)]
r216: Update copyright notice

17 years agor215: Incorporate patch from SuSE
yoe [Wed, 1 Nov 2006 14:27:42 +0000 (14:27 +0000)]
r215: Incorporate patch from SuSE

17 years agor213: Install nbd-tester-client as a test suite
yoe [Wed, 1 Nov 2006 13:19:54 +0000 (13:19 +0000)]
r213: Install nbd-tester-client as a test suite

17 years agor212: We've been using svn since quite a while now
yoe [Wed, 1 Nov 2006 13:06:48 +0000 (13:06 +0000)]
r212: We've been using svn since quite a while now

17 years agor211: Allow for varying the filename of the PID file on the command line
yoe [Wed, 1 Nov 2006 12:51:14 +0000 (12:51 +0000)]
r211: Allow for varying the filename of the PID file on the command line

17 years agor210: Spelling fix
yoe [Wed, 1 Nov 2006 12:41:32 +0000 (12:41 +0000)]
r210: Spelling fix

17 years agor209: Sync documentation with what the code turned out to be, and add a few simple
yoe [Wed, 25 Oct 2006 12:41:54 +0000 (12:41 +0000)]
r209: Sync documentation with what the code turned out to be, and add a few simple
examples