nbd.git
13 years agoFix handling of oversized requests
Wouter Verhelst [Fri, 28 Jan 2011 12:19:30 +0000 (13:19 +0100)]
Fix handling of oversized requests

Previously, nbd-server would not serve requests that were over 1MB in
size. This was a problem, and even a bug since the kernel does send such
requests.

Modify the server so that it loops if the request is larger than 1MB.

13 years agoFix buffer size checking
Wouter Verhelst [Thu, 27 Jan 2011 21:30:09 +0000 (22:30 +0100)]
Fix buffer size checking

Yes, this means we've re-introduced CVE-2005-3534. Sigh.

13 years agoRemove outdated roadmap
Wouter Verhelst [Wed, 26 Jan 2011 00:46:21 +0000 (01:46 +0100)]
Remove outdated roadmap

13 years agoRelease 2.9.19
Wouter Verhelst [Sun, 16 Jan 2011 00:41:16 +0000 (01:41 +0100)]
Release 2.9.19

13 years ago10 TByte partition
sf@psjt.org [Sat, 11 Dec 2010 00:27:45 +0000 (01:27 +0100)]
10 TByte partition

Moin!

The attached patch allows to run a 16TB nbd partition on a 32-bit
system.

Gruß, Stephan

13 years agonbd-server: Limit the number of connections
Gregory Thiemonge [Mon, 27 Sep 2010 14:04:36 +0000 (16:04 +0200)]
nbd-server: Limit the number of connections

Hi there,

This is a patch that allows to limit the number of opened connections in
nbd-server.

This limitation can be specified from both command line and config
files:
- -M <n> or --max-connections <n> from command line
- or maxconnections = <n> in config files (export sections)

Regards,
Greg

13 years agoPut nbd-client back in sbin
Wouter Verhelst [Wed, 8 Sep 2010 08:31:24 +0000 (10:31 +0200)]
Put nbd-client back in sbin

13 years agoMove man files to man/
Laurent Vivier [Fri, 27 Aug 2010 18:48:17 +0000 (20:48 +0200)]
Move man files to man/

Signed-off-by: Laurent Vivier <laurent@vivier.eu>

13 years agoRevisit documentation
Wouter Verhelst [Thu, 2 Sep 2010 10:55:11 +0000 (12:55 +0200)]
Revisit documentation

There were a few issues with the documentation, where it grew some hairy
and weird phrasing. Fix those.

13 years agoRemove GCC warnings:
Laurent Vivier [Mon, 23 Aug 2010 20:51:50 +0000 (22:51 +0200)]
Remove GCC warnings:

warning: ignoring return value of ‘write’
warning: ignoring return value of ‘read’
warning: format not a string literal and no format arguments
warning: ignoring return value of ‘daemon’

Signed-off-by: Laurent Vivier <laurent@vivier.eu>

13 years agoBe less scary
Wouter Verhelst [Tue, 24 Aug 2010 01:11:22 +0000 (03:11 +0200)]
Be less scary

When nothing is configured, a rather scary warning is displayed. Change
it so that it isn't quite as scary, since that produces a number of
questions from users who don't know nbd-server.

13 years agoOops
Wouter Verhelst [Thu, 19 Aug 2010 18:04:28 +0000 (20:04 +0200)]
Oops

13 years agoREADME: nbX -> nbdX
Led [Fri, 11 Dec 2009 14:14:33 +0000 (16:14 +0200)]
README: nbX -> nbdX

13 years agoinclude sdp_inet.h for build with SDP
Led [Fri, 11 Dec 2009 15:30:04 +0000 (17:30 +0200)]
include sdp_inet.h for build with SDP

13 years agofix build with non-gcc compiler
Wouter Verhelst [Thu, 19 Aug 2010 17:57:07 +0000 (19:57 +0200)]
fix build with non-gcc compiler

Pulled from Alt Linu

Conflicts:

cliserv.h

13 years agoRelease 2.9.18
Wouter Verhelst [Mon, 9 Aug 2010 18:02:09 +0000 (14:02 -0400)]
Release 2.9.18

13 years agoExtend test suite and fix named exports
Wouter Verhelst [Mon, 9 Aug 2010 17:52:00 +0000 (13:52 -0400)]
Extend test suite and fix named exports

13 years agoComment out <linux/types.h> include
Wouter Verhelst [Fri, 6 Aug 2010 21:14:31 +0000 (17:14 -0400)]
Comment out <linux/types.h> include

We provide the necessary bits ourselves anyway, and it doesn't exist on
non-Linux systems.

13 years agoUse a recent enough version of nbd.h (oops)
Wouter Verhelst [Fri, 6 Aug 2010 16:35:06 +0000 (12:35 -0400)]
Use a recent enough version of nbd.h (oops)

13 years agoRelease 2.9.17
Wouter Verhelst [Fri, 6 Aug 2010 00:51:28 +0000 (20:51 -0400)]
Release 2.9.17

13 years agoDocument differences with old style exports
Wouter Verhelst [Fri, 6 Aug 2010 00:51:06 +0000 (20:51 -0400)]
Document differences with old style exports

13 years agoFix simple_test for named exports
Wouter Verhelst [Fri, 6 Aug 2010 00:37:45 +0000 (20:37 -0400)]
Fix simple_test for named exports

Old-style exports require the oldstyle=true option in the 'generic'
section; so add that.

Prepare simple_test for support for named exports in nbd-tester-client,
too, but that still needs to be implemented.

13 years agoFix command-line oldstyle export
Wouter Verhelst [Thu, 5 Aug 2010 23:47:19 +0000 (19:47 -0400)]
Fix command-line oldstyle export

13 years agoUse IANA-assigned port number: 10809
Wouter Verhelst [Wed, 4 Aug 2010 03:26:07 +0000 (23:26 -0400)]
Use IANA-assigned port number: 10809

13 years agoSanitize negotiation a bit
Wouter Verhelst [Wed, 28 Jul 2010 22:10:50 +0000 (18:10 -0400)]
Sanitize negotiation a bit

- We don't need 64 bit size_t for a name
- We don't need 64 reserved bits client to server; if we ever need more
  than 31, we'll just add another field and use the last bit as a marker
  to say that the other field is available.

13 years agoDocumentation updates
Wouter Verhelst [Wed, 28 Jul 2010 02:56:30 +0000 (22:56 -0400)]
Documentation updates

- Document -N / -name option
- Some generic docbook fixes

13 years agoMerge branch 'master' into names
Wouter Verhelst [Tue, 27 Jul 2010 22:54:37 +0000 (18:54 -0400)]
Merge branch 'master' into names

13 years agoMention two-dash form of long options
Wouter Verhelst [Tue, 27 Jul 2010 22:48:09 +0000 (18:48 -0400)]
Mention two-dash form of long options

13 years agoReturn the right value on nbd-client -c
Wouter Verhelst [Tue, 27 Jul 2010 22:41:06 +0000 (18:41 -0400)]
Return the right value on nbd-client -c

command line parsing rewrite accidentally removed this.

13 years agoFix a host/network order bug
Wouter Verhelst [Tue, 27 Jul 2010 18:52:15 +0000 (14:52 -0400)]
Fix a host/network order bug

13 years agoFunctional fixes
Wouter Verhelst [Tue, 27 Jul 2010 18:35:12 +0000 (14:35 -0400)]
Functional fixes

Result of tests. It works! Whee!

13 years agoDocumentation update
Wouter Verhelst [Tue, 27 Jul 2010 17:40:31 +0000 (13:40 -0400)]
Documentation update

13 years agoActually disable oldstyle export when requested
Wouter Verhelst [Tue, 27 Jul 2010 12:25:10 +0000 (08:25 -0400)]
Actually disable oldstyle export when requested

13 years agoUse a different magic
Wouter Verhelst [Tue, 27 Jul 2010 11:34:04 +0000 (07:34 -0400)]
Use a different magic

Use a different magic, to avoid old clients accidentally using the
well-known port and hanging.

13 years agoInitial implementation of named exports
Wouter Verhelst [Mon, 26 Jul 2010 23:44:17 +0000 (19:44 -0400)]
Initial implementation of named exports

13 years agoFix segfault
Wouter Verhelst [Mon, 26 Jul 2010 20:37:29 +0000 (16:37 -0400)]
Fix segfault

13 years agoDocumentation update
Wouter Verhelst [Sun, 25 Jul 2010 13:19:20 +0000 (15:19 +0200)]
Documentation update

13 years agoPrepare for 2.9.16
Wouter Verhelst [Sun, 25 Jul 2010 00:04:09 +0000 (02:04 +0200)]
Prepare for 2.9.16

13 years agoMake -Wall clean
Wouter Verhelst [Sun, 25 Jul 2010 00:00:23 +0000 (02:00 +0200)]
Make -Wall clean

13 years agoAdd nbd.h to source
Wouter Verhelst [Sat, 24 Jul 2010 19:48:24 +0000 (21:48 +0200)]
Add nbd.h to source

Previously, we would depend on an out-of-tree nbd.h. This is error-prone
on Linux (if the kernel nbd.h changes incompatibly, the userspace tools
won't compile anymore) and problematic on non-Linux (where you'd have to
manage somehow to fetch a working nbd.h)

So, stop being silly.

13 years agoGenerate nbd-client.8.in, too
Wouter Verhelst [Sat, 24 Jul 2010 19:47:50 +0000 (21:47 +0200)]
Generate nbd-client.8.in, too

13 years agoWhitespace fixes
Wouter Verhelst [Sat, 24 Jul 2010 19:47:33 +0000 (21:47 +0200)]
Whitespace fixes

13 years agoRemove cruft
Wouter Verhelst [Sat, 24 Jul 2010 19:18:34 +0000 (21:18 +0200)]
Remove cruft

This was useful when we tried making github our official distribution
point; but we're not doing that anymore, so drop it.

13 years agoImprove structure
Wouter Verhelst [Sat, 24 Jul 2010 19:07:00 +0000 (21:07 +0200)]
Improve structure

- Use getopt_long_only() to implement option parsing. This probably
  makes use of small C libraries harder, but that wasn't very much
  possible to begin with, anyway.
- Deprecate bs= and timeout= options in favour of new --block-size and
  --timeout options.
- Compartmentalize a bit more. Yes, the compiler will optimize that away
  in some cases, but what do I care, I don't need to write assembler
  code.

Documentation update to follow.

13 years agoFix compile with -DNOFORK
Wouter Verhelst [Thu, 22 Jul 2010 13:22:47 +0000 (15:22 +0200)]
Fix compile with -DNOFORK

13 years agoFix logic reversal in authorization file
Wouter Verhelst [Wed, 21 Jul 2010 21:18:34 +0000 (23:18 +0200)]
Fix logic reversal in authorization file

13 years agoDeprecate command line export options.
Wouter Verhelst [Fri, 18 Jun 2010 06:35:36 +0000 (08:35 +0200)]
Deprecate command line export options.

13 years agoWhitespace fix
Wouter Verhelst [Fri, 18 Jun 2010 06:32:33 +0000 (08:32 +0200)]
Whitespace fix

13 years agoUse correct names
Wouter Verhelst [Mon, 14 Jun 2010 20:48:13 +0000 (22:48 +0200)]
Use correct names

The kernel uses /dev/nbdX rather than /dev/nbX. MAKEDEV used to be
different at some point, but no more.

13 years agoFix bugs in command-line argument handling
Wouter Verhelst [Thu, 20 May 2010 13:35:57 +0000 (15:35 +0200)]
Fix bugs in command-line argument handling

We produced an error message when all four flags were used; and we would
only catch such flags if they were produced in the right order (which
was different from the order in the manpage).

Thanks to Fan Zhang for catching these.

13 years agoFix leaks
Wouter Verhelst [Mon, 3 May 2010 13:57:28 +0000 (15:57 +0200)]
Fix leaks

There were a few strings that weren't being removed. This is
cleanup-code that's not called all that often, but We Shouldn't
Leak(TM).

14 years agoImprove output
Wouter Verhelst [Wed, 14 Apr 2010 15:30:52 +0000 (17:30 +0200)]
Improve output

- When using a float to store a result, make sure we don't do integer
  calculation.
- Add our PID to the output, so that we can understand which line of
  output is part of which nbd-tester-client run.

14 years agoMissed a bit
Wouter Verhelst [Thu, 1 Apr 2010 11:23:30 +0000 (13:23 +0200)]
Missed a bit

14 years agoDocumentation update
Wouter Verhelst [Thu, 1 Apr 2010 11:07:26 +0000 (13:07 +0200)]
Documentation update

Since we now support IPv6, upodate those bits of the documentation that
assume v4 only.

14 years agoRelease 2.9.15
Wouter Verhelst [Wed, 24 Mar 2010 21:01:36 +0000 (22:01 +0100)]
Release 2.9.15

14 years agoBug#382189: IPv6 support
Neutron Soutmun [Wed, 24 Mar 2010 05:25:59 +0000 (12:25 +0700)]
Bug#382189: IPv6 support

Package: nbd
Version: 2.9.14-3
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The latest patch to master branch of git repository is attached.
Please review the patch again.

It's also solved the #557810.

Add append_serve() more over the last patch to verify the parsing
listening address which now the parsing listening address could
be IPv4/IPv6 and also hostname. The service will resolve the hostname
and try to listening on all of them.

If the hostname/address could not solve, must show the error

getaddrinfo failed on listen host/address: testing (Name or service not known)

If parsing hostname,

It will listen on 127.0.0.1:12345

It will listen on ::1@12345

Regards,
Neutron Soutmun

- -- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=th_TH.UTF-8, LC_CTYPE=th_TH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkupomIACgkQ1k7Ar9TO/TdLngCgvGp2oGKR0PLGmMFVTUkxh9yO
NrQAnR4FqtwoEuo/aZoEFhdhFI3mOVbU
=1UBe
-----END PGP SIGNATURE-----

14 years agoBe explicit when we exit
Wouter Verhelst [Sat, 27 Feb 2010 21:39:35 +0000 (22:39 +0100)]
Be explicit when we exit

Currently, when a fatal error occurs, nbd-server logs that error, but
then silently exits -- i.e., it is left to the user to guess that it has
exited. We should be more explicit about that fact.

14 years agoParse listenaddr for hostnames
Wouter Verhelst [Sat, 27 Feb 2010 21:29:50 +0000 (22:29 +0100)]
Parse listenaddr for hostnames

Previously, a listen address had to be specified by IP address;
hostnames where not supported. This patch should fix that. It is useful
for those who wish to use something like 'listenaddr = localhost',
though using the IP address is really recommended for most other
situations.

14 years agoFix 'make -j check'
Wouter Verhelst [Tue, 15 Dec 2009 09:37:57 +0000 (10:37 +0100)]
Fix 'make -j check'

Port numbers were the same across all three tests, so that made the
check fail if they were ran at the same time...

14 years agolfs.h: fix build with --disable-lfs
Peter Korsgaard [Sun, 22 Nov 2009 22:11:42 +0000 (23:11 +0100)]
lfs.h: fix build with --disable-lfs

Running ./configure with --disable-lfs #define's NBD_LFS to 0 and
doesn't #undef it, so the LFS check should use #if rather than #ifdef
similar to how it is done in cliserv.h

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>

14 years agoPrepare for 2.9.14
Wouter Verhelst [Sat, 17 Oct 2009 18:16:13 +0000 (20:16 +0200)]
Prepare for 2.9.14

14 years agoMake -Wall -Werror compile again
Wouter Verhelst [Sat, 17 Oct 2009 18:15:40 +0000 (20:15 +0200)]
Make -Wall -Werror compile again

14 years agoDocument why this is necessary.
Wouter Verhelst [Fri, 16 Oct 2009 08:52:18 +0000 (10:52 +0200)]
Document why this is necessary.

14 years agoPut the -nofork check on the right spot
Wouter Verhelst [Thu, 15 Oct 2009 17:22:19 +0000 (19:22 +0200)]
Put the -nofork check on the right spot

nbd-client will fork in two occasions: once when going daemon, once when
forking itself off to be able to open the device so we can trigger the
kernel to reread its partition table (if any), which in turn will cause
udev to DTRT.

The NOFORK macros were written in to make debugging simpeler, and
predate the daemon() thing. I think. Anyhow, what's useful for code
debugging is not necessarily useful for runtime debugging; so this moves
the daemon() call inside the macros, makes it not be called if -nofork
has been specified, and changes the code so that the partition table
reread is still triggered even if -nofork has been specified.

14 years agoMissed one
Wouter Verhelst [Sun, 27 Sep 2009 11:31:02 +0000 (13:31 +0200)]
Missed one

This one, too, needed to be thrown out. Oops.

14 years agoRemove unsupported options
Wouter Verhelst [Sat, 26 Sep 2009 17:11:07 +0000 (19:11 +0200)]
Remove unsupported options

The no longer supported -a option was still part of the 'getopt' call,
and was still shown in the error output. This patch removes that code.

14 years agoMake autogen.sh work
Wouter Verhelst [Mon, 24 Aug 2009 19:12:21 +0000 (21:12 +0200)]
Make autogen.sh work

Makefile.am expects $(srcdir) to be set -- so set it in the environment

14 years agoRemove dead code
Wouter Verhelst [Wed, 19 Aug 2009 14:09:47 +0000 (16:09 +0200)]
Remove dead code

If someone needs it, they can always pull it from git.

Also, make the mlockall() call conditional on if(swap) again.

14 years agoDocumentation update
Wouter Verhelst [Tue, 18 Aug 2009 16:34:55 +0000 (18:34 +0200)]
Documentation update

Sometimes users get confused over the fact that block devices are files,
too, for the most part. Make it a bit more explicit that exporting block
devices is supported in the documentation.

14 years agoFix error output
Wouter Verhelst [Fri, 14 Aug 2009 09:16:33 +0000 (11:16 +0200)]
Fix error output

dousers() previously tried to call g_message directly. Since we're
running as daemon already at this point, g_message won't produce output.

Fix by using err() instead.

14 years agoFix message string
Wouter Verhelst [Fri, 14 Aug 2009 08:45:44 +0000 (10:45 +0200)]
Fix message string

Adding the filename as an argument is nice, but the message string needs
it too

14 years agoPatches from Debian
Wouter Verhelst [Mon, 10 Aug 2009 08:09:21 +0000 (10:09 +0200)]
Patches from Debian

14 years agoRerun autofoo
Wouter Verhelst [Tue, 4 Aug 2009 07:07:49 +0000 (09:07 +0200)]
Rerun autofoo

14 years agoMake incorrect use of timeout fail.
Wouter Verhelst [Tue, 4 Aug 2009 07:01:21 +0000 (09:01 +0200)]
Make incorrect use of timeout fail.

When nbd-client is compiled on a system that does not support the timeout
ioctl(), we now fail with an error message. Previously, the option would be
silently ignored, which might not be optimal.

14 years agoUnconfuse
Wouter Verhelst [Sat, 18 Jul 2009 13:15:13 +0000 (15:15 +0200)]
Unconfuse

14 years agoImplement sync option
Wouter Verhelst [Fri, 17 Jul 2009 08:58:03 +0000 (10:58 +0200)]
Implement sync option

This allows a user to enable fsync() calls after a write to a backend
file.

14 years agoPrepare for 2.9.13
Wouter Verhelst [Thu, 9 Jul 2009 08:56:25 +0000 (10:56 +0200)]
Prepare for 2.9.13

14 years agoDocumentation update
Wouter Verhelst [Thu, 9 Jul 2009 08:51:09 +0000 (10:51 +0200)]
Documentation update

People are sometimes confused about the warnings that nbd-server
produces when an invalid or incomplete warning is encountered.

Note in the manpage that these warnings are harmless if a command-line
configuration was specified and no configuration file is desired.

14 years agoDon't try working on partitions
Wouter Verhelst [Mon, 8 Jun 2009 21:15:46 +0000 (23:15 +0200)]
Don't try working on partitions

When a partition is given to the -d or -c command line options, reduce
it to the master device instead.

This assumes udev-style naming of device entries, though.

14 years agoFix autodetection
Wouter Verhelst [Mon, 8 Jun 2009 21:02:29 +0000 (23:02 +0200)]
Fix autodetection

Everything else in nbd-server was already 64bit-clean, but this part,
where the size of a block device is autodected, wasn't.

Replace the ioctl() to BLKGETSIZE with its 64bit version, so that trying
to detect the size of a multi-terabyte block device does not fail.

14 years agoAvoid unaligned access
Wouter Verhelst [Fri, 5 Jun 2009 19:43:54 +0000 (21:43 +0200)]
Avoid unaligned access

nbd-tester-client tried to write to a char array in a packed struct by
casting it to an u64 pointer and dereferencing it. That causes unaligned
access and, hence, a SIGBUS on SPARC.

Fix by using memcpy instead.

14 years agoActually go daemon
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.

14 years agoApparently forgot this file -- update that one, too.
Wouter Verhelst [Tue, 26 May 2009 15:45:02 +0000 (17:45 +0200)]
Apparently forgot this file -- update that one, too.

14 years agoMerge branch 'import'
Wouter Verhelst [Sun, 24 May 2009 07:22:40 +0000 (09:22 +0200)]
Merge branch 'import'

14 years agoUpdate documentation to reflect new behaviour of -swap option
Wouter Verhelst [Sun, 24 May 2009 07:14:50 +0000 (09:14 +0200)]
Update documentation to reflect new behaviour of -swap option

14 years agoDocument -noswap option
Wouter Verhelst [Sun, 24 May 2009 07:13:34 +0000 (09:13 +0200)]
Document -noswap option

14 years agoHacked nbd-client.c to include a flag -nofork, that allows the nbd-client process...
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>

14 years agoFix for nbd-server uner xinetd
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).

14 years agoRemove support for timeout option
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).

14 years agomore user-friendly error message
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

14 years agoautoconf after version...
Wouter Verhelst [Thu, 30 Apr 2009 13:06:33 +0000 (15:06 +0200)]
autoconf after version...

14 years agoversion number
Wouter Verhelst [Thu, 30 Apr 2009 13:04:56 +0000 (15:04 +0200)]
version number

14 years agorerun autotools
Wouter Verhelst [Thu, 30 Apr 2009 12:38:20 +0000 (14:38 +0200)]
rerun autotools

14 years agoMore build fixes
Wouter Verhelst [Thu, 30 Apr 2009 12:37:51 +0000 (14:37 +0200)]
More build fixes

these let 'make distcheck' work again.

14 years agoFix build system
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.

15 years agouse atoll instead of atol
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.

15 years agoMinor fixes
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.

15 years agoAvoid i18n when we don't need it
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.

15 years agoChange meaning of -swap option
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.

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