Wouter Verhelst [Tue, 26 May 2009 15:45:19 +0000 (17:45 +0200)]
Actually go daemon
just doing chdir("/") leave file descriptors open, which is not ideal.
Doing it this way closes everything, including any system-specific
things we're not aware of.
Wouter Verhelst [Tue, 26 May 2009 15:45:02 +0000 (17:45 +0200)]
Apparently forgot this file -- update that one, too.
Wouter Verhelst [Sun, 24 May 2009 07:22:40 +0000 (09:22 +0200)]
Merge branch 'import'
Wouter Verhelst [Sun, 24 May 2009 07:14:50 +0000 (09:14 +0200)]
Update documentation to reflect new behaviour of -swap option
Wouter Verhelst [Sun, 24 May 2009 07:13:34 +0000 (09:13 +0200)]
Document -noswap option
ciprian [Sun, 10 May 2009 15:43:23 +0000 (23:43 +0800)]
Hacked nbd-client.c to include a flag -nofork, that allows the nbd-client process to not fork and daemonize itself.
Signed-off-by: Wouter Verhelst <w@uter.be>
Tom Cocagne [Sat, 23 May 2009 10:30:36 +0000 (12:30 +0200)]
Fix for nbd-server uner xinetd
nbd-server currently fails under inetd due to GLib error messages being
reported over the data channel. The attached patch moves the configuration
file parsing warning to occur after the inetd special-case check and
redirects all GLib messages to the syslog (if --enable-syslog is used).
Wouter Verhelst [Sat, 23 May 2009 07:45:51 +0000 (09:45 +0200)]
Remove support for timeout option
The timeout option has been broken for a very long time. Additionally,
something like this is better done by making use of TCP keepalive
probes, which nbd-server has implemented since 2003 (unless you're using
it in inetd mode, in which case you should add the keepalive option to
the inetd configuration for the nbd-server).
Milos Jakubicek [Wed, 13 May 2009 22:55:41 +0000 (00:55 +0200)]
more user-friendly error message
Hi folks,
we recently had a bug filed against the nbd Fedora package claiming
about the clarity of the error message which is printed when the nbd
module is not loaded:
https://bugzilla.redhat.com/show_bug.cgi?id=496751
What about merging a tiny patch I attached?
Regards,
Milos
Wouter Verhelst [Thu, 30 Apr 2009 13:06:33 +0000 (15:06 +0200)]
autoconf after version...
Wouter Verhelst [Thu, 30 Apr 2009 13:04:56 +0000 (15:04 +0200)]
version number
Wouter Verhelst [Thu, 30 Apr 2009 12:38:20 +0000 (14:38 +0200)]
rerun autotools
Wouter Verhelst [Thu, 30 Apr 2009 12:37:51 +0000 (14:37 +0200)]
More build fixes
these let 'make distcheck' work again.
Wouter Verhelst [Thu, 30 Apr 2009 12:18:15 +0000 (14:18 +0200)]
Fix build system
* Add lfs.h to the proper _SOURCES entry
* remove winnbd from SUBDIRS, since we don't have that anymore.
Wouter Verhelst [Sat, 31 Jan 2009 02:00:55 +0000 (03:00 +0100)]
use atoll instead of atol
... so that multi-terabyte exports work, too.
Wouter Verhelst [Wed, 7 Jan 2009 12:10:11 +0000 (13:10 +0100)]
Minor fixes
- Gracefully handle when a config file contains a valid [generic] section, but
no export sections
- Free our key file stuff on successful parsing of the config file, too.
Wouter Verhelst [Sat, 3 Jan 2009 05:24:04 +0000 (06:24 +0100)]
Avoid i18n when we don't need it
Manpages aren't translated, so translated dates there are sucky.
Wouter Verhelst [Sat, 3 Jan 2009 05:08:52 +0000 (06:08 +0100)]
Change meaning of -swap option
Change meaning of -swap option: rather than trying to use a kernel patch
which has been effectively dead since sometime around 2.1.something, do
an mlockall() so that the kernel won't throw us out.
The MCL_CURRENT | MCL_FUTURE bit might prove to be problematic, but if
so, we'll deal with it when we get there.
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
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.
Wouter Verhelst [Sat, 27 Dec 2008 00:09:04 +0000 (01:09 +0100)]
Don't track .o files
Don't track .o files
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 ;-)
yoe [Fri, 5 Dec 2008 22:43:38 +0000 (22:43 +0000)]
r344: Fixes suggested by Pavel Macheck
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.
yoe [Mon, 25 Aug 2008 11:58:01 +0000 (11:58 +0000)]
r342: Use right printf() format string
yoe [Tue, 12 Aug 2008 20:22:01 +0000 (20:22 +0000)]
r340: Fix printing of 64bit integers; patch by Brad Allen
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().
yoe [Wed, 18 Jun 2008 10:46:40 +0000 (10:46 +0000)]
r338: Oops, this is work-in-progress, remove
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
yoe [Thu, 15 May 2008 19:27:34 +0000 (19:27 +0000)]
r336: Cut out klcc usage. It's broken, silly to even try.
yoe [Sun, 4 May 2008 15:02:18 +0000 (15:02 +0000)]
r335: Allow disabling of klcc
yoe [Thu, 1 May 2008 19:05:35 +0000 (19:05 +0000)]
r334: Re-sync table indexes
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
yoe [Mon, 31 Mar 2008 08:18:51 +0000 (08:18 +0000)]
r331: Add code to detect whether a device is connected
yoe [Mon, 17 Mar 2008 10:31:01 +0000 (10:31 +0000)]
r329: Wasn't supposed to be part of this commit
yoe [Mon, 17 Mar 2008 10:28:39 +0000 (10:28 +0000)]
r328: Oops, don't forget to change this number
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.
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
yoe [Mon, 17 Mar 2008 09:44:36 +0000 (09:44 +0000)]
r325: Avoid unnecessary wakeups
yoe [Sun, 16 Mar 2008 11:02:26 +0000 (11:02 +0000)]
r324: Fix sdp section
yoe [Fri, 14 Mar 2008 12:43:11 +0000 (12:43 +0000)]
r321: And uClibc, too
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
yoe [Fri, 14 Mar 2008 12:30:24 +0000 (12:30 +0000)]
r319: Merge from trunk
yoe [Fri, 14 Mar 2008 12:22:05 +0000 (12:22 +0000)]
r317: Update status of deadlock issue
yoe [Sun, 18 Nov 2007 09:41:48 +0000 (09:41 +0000)]
r311: Document undocumented options
yoe [Wed, 14 Nov 2007 20:57:27 +0000 (20:57 +0000)]
r310: Fix a few typos in the docs
yoe [Wed, 14 Nov 2007 19:19:24 +0000 (19:19 +0000)]
r308: Fix segfault when exporting more than one device.
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
yoe [Sun, 4 Nov 2007 09:01:59 +0000 (09:01 +0000)]
r306: Make sure this compiles on other systems than just Linux
yoe [Tue, 30 Oct 2007 15:14:31 +0000 (15:14 +0000)]
r305: Use constants rather than their value
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.
yoe [Fri, 26 Oct 2007 20:32:01 +0000 (20:32 +0000)]
r301: Make this compile warning-free, too
yoe [Fri, 26 Oct 2007 20:25:45 +0000 (20:25 +0000)]
r300: Remove all GCC warnings
yoe [Fri, 26 Oct 2007 20:17:54 +0000 (20:17 +0000)]
r299: Make -Werror work again
yoe [Fri, 26 Oct 2007 20:00:28 +0000 (20:00 +0000)]
r298: Oops
yoe [Fri, 26 Oct 2007 19:59:47 +0000 (19:59 +0000)]
r297: Fix stupid errors
yoe [Fri, 26 Oct 2007 18:01:51 +0000 (18:01 +0000)]
r296: Documentation updates
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)
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)
yoe [Fri, 26 Oct 2007 12:12:58 +0000 (12:12 +0000)]
r293: Handle incorrect user- or groupnames correctly
yoe [Tue, 23 Oct 2007 10:54:15 +0000 (10:54 +0000)]
r292: Add note about deadline scheduler
yoe [Mon, 22 Oct 2007 00:46:11 +0000 (00:46 +0000)]
r291: make the build work, again
yoe [Wed, 17 Oct 2007 09:52:50 +0000 (09:52 +0000)]
r290: Reword a troublesome sentence, and document the sdp support
yoe [Wed, 17 Oct 2007 09:34:27 +0000 (09:34 +0000)]
r289: Add experimental support for the SDP protocol
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
yoe [Thu, 27 Sep 2007 09:00:16 +0000 (09:00 +0000)]
r287: Fixes from Tefnet <developers@tefnet.pl>
yoe [Wed, 19 Sep 2007 02:08:40 +0000 (02:08 +0000)]
r286: Oops, version number shouldn't be in subversion
yoe [Wed, 19 Sep 2007 02:07:58 +0000 (02:07 +0000)]
r285: Move first do_run command up slightly
yoe [Tue, 18 Sep 2007 12:32:20 +0000 (12:32 +0000)]
r283: Don't dereference a command if it's empty
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
snitm [Sat, 25 Aug 2007 22:43:44 +0000 (22:43 +0000)]
r281: Revised nbd-client timeout support
snitm [Sat, 25 Aug 2007 22:35:53 +0000 (22:35 +0000)]
r280: Revert recent nbd-client timeout changes; revised changes to follow
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.
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
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
yoe [Thu, 26 Jul 2007 14:38:04 +0000 (14:38 +0000)]
r272: Fix documentation layout
yoe [Thu, 26 Jul 2007 14:32:12 +0000 (14:32 +0000)]
r271: update this document, too
yoe [Thu, 26 Jul 2007 14:30:45 +0000 (14:30 +0000)]
r270: Implement prerun and postrun options
yoe [Thu, 19 Jul 2007 10:00:47 +0000 (10:00 +0000)]
r269: Update README to reflect reality
yoe [Thu, 19 Jul 2007 09:05:18 +0000 (09:05 +0000)]
r267: Really fix the segfault. Hand the brown paper bag, please
yoe [Thu, 19 Jul 2007 09:04:27 +0000 (09:04 +0000)]
r266: mktemp provides an absolute path...
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
yoe [Sun, 8 Jul 2007 10:01:31 +0000 (10:01 +0000)]
r264: Fix segfault
yoe [Sun, 8 Jul 2007 09:55:49 +0000 (09:55 +0000)]
r263: Ignore generated manpage nbd-server.5
yoe [Sun, 8 Jul 2007 09:51:38 +0000 (09:51 +0000)]
r262: Add a debugging switch on the cmdline
yoe [Mon, 25 Jun 2007 13:30:57 +0000 (13:30 +0000)]
r261: Fix inetd mode
yoe [Fri, 15 Jun 2007 21:38:51 +0000 (21:38 +0000)]
r260: Fix usage of peername, patch by gad@jetcom.org
yoe [Wed, 13 Jun 2007 11:07:26 +0000 (11:07 +0000)]
r259: Merge r258
yoe [Mon, 4 Jun 2007 01:13:10 +0000 (01:13 +0000)]
r255: Oops
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
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
yoe [Sat, 3 Mar 2007 07:41:47 +0000 (07:41 +0000)]
r243: Merge r242
yoe [Mon, 12 Feb 2007 12:33:26 +0000 (12:33 +0000)]
r241: Merge r240 from trunk
yoe [Tue, 30 Jan 2007 12:55:09 +0000 (12:55 +0000)]
r238: Branch 2.9 to allow starting development on 2.10
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
yoe [Sat, 27 Jan 2007 23:57:44 +0000 (23:57 +0000)]
r235: Oops
yoe [Sat, 27 Jan 2007 23:56:16 +0000 (23:56 +0000)]
r234: Add manpage
yoe [Sat, 27 Jan 2007 23:53:04 +0000 (23:53 +0000)]
r233: Fix 64bit stuff (again)
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.
yoe [Tue, 23 Jan 2007 17:18:29 +0000 (17:18 +0000)]
r231: Make client sockets non-blocking, too.