summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* Replace all remaining use of TRACEx() macros with logging framework.Chris Wilson2008-03-29
| | | | | Remove the old TRACEx macros to catch any remaining uses.
* No need to save errno any more.Chris Wilson2008-03-29
|
* Close after logging socket error, so that we don't lose errno.Chris Wilson2008-03-29
|
* Allow configuration of the server port that the client will connect to Chris Wilson2008-03-28
| | | | | | | | | | | | | (bbackupd and bbackupquery). Redesign ConfigurationVerify to use classes instead of structs. Use port 22011 instead of 2201 during tests, to reduce the chances of conflicting with a running bbstored or other process. Ignore autogen_* in svn:ignore everywhere instead of individual per-file ignores.
* Improve logging with macros that consistently output strerror(errno) andChris Wilson2008-03-28
| | | | | | | | | | | | | | | errno, replacing almost all use of strerror() in the main code. Log a more detailed error message before throwing an exception for some more system call failures. Make FileStream store its filename on all platforms, not just Windows. Wrap some long lines at less than 80 characters to improve readability. Fix some minor violations of coding standard (white space) and a typo in a comment.
* Reduce log level of message from server child from WARNING to NOTICE, asChris Wilson2008-03-28
| | | | | it's just the IP and port of the remote side of the connection.
* Add the -K option to Daemons on Windows to keep them quiet even though Chris Wilson2008-03-13
| | | | | | | | they don't fork by themselves. This is because the tests are able to run them in the background, and if they keep the console open then they will continue to spew to it. This option is normally only useful when running the daemon in a test.
* Fix compile error.Chris Wilson2008-03-13
|
* Ignore ERR_NO_DATA while writing to control socket on Windows, as it Chris Wilson2008-03-13
| | | | | just means that the Pope is being closed.
* Only log daemon banner to syslog, not to console, as this is probably Chris Wilson2008-03-01
| | | | | | what users expect (and they have no way to control verbosity on the console this early).
* Add support for logging just to syslog (not console) at a given Chris Wilson2008-03-01
| | | | | priority.
* Workaround for (buggy?) gcc not finding inherited Main method on Chris Wilson2008-03-01
| | | | | Windows.
* Don't try to define our own dirfd() macro on platforms where interceptionChris Wilson2008-02-25
| | | | | is impossible (such as win32) because it's not needed and fails on win32.
* Disable -P option and showing PID in Logging on Windows.Chris Wilson2008-02-22
|
* Improve error messages when loading SSL key files fails.Chris Wilson2008-02-07
|
* Always add file size to timestamp in release mode, to help caching workChris Wilson2008-01-31
| | | | | | | | | | better on machines which claim to support high-res timestamps but actually don't (e.g. Linux, MacOS X). Never do so in debug mode, to help catch problems with the tests failing to sleep long enough between operations on different connections that can break caching subtly and randomly.
* Use logging framework for streaming messages.Chris Wilson2008-01-31
| | | | | | | | | Fix double logging of protocol commands on the server side. Log protocol errors at WARNING level. Fix typos in comments and variable names.
* Add support for microsecond timestamps and PID logging on console logChris Wilson2008-01-31
| | | | | for daemons.
* Add support for nanosecond timestamps in struct stat on Linux.Chris Wilson2008-01-31
|
* Update version on MSVC config.Chris Wilson2008-01-29
|
* Use @sysconfdir_expanded@ for default config file location.Chris Wilson2008-01-28
| | | | | | | Add some missing semicolons (optional but nicer). Reformat usage message for readability.
* Change the default sysconfdir to /etc.Chris Wilson2008-01-28
| | | | | | | | | | | | | Generate expanded versions of sysconfdir and localstatedir, as well as bindir. Expand variables in BoxPortsAndFiles.h.in. Changed default configuration dir in BoxPortsAndFiles.h.in to use @sysconfdir_expanded@/box, defaulting to /etc/box as before. But now you can override it with something like --sysconfdir=/usr/etc (to place config files in /usr/etc/box).
* Fix raidfile tests on FreeBSD 7Chris Wilson2008-01-23
|
* Detect whether struct DIR has d_fd or dd_fd member and define theChris Wilson2008-01-22
| | | | | dirfd() macro accordingly.
* memleakfinder_atexit() should be extern "C" to silence warnings.Chris Wilson2008-01-22
|
* Silence const char warnings, part deux.Chris Wilson2008-01-22
|
* Use const char pointers to silence sun CC warnings.Chris Wilson2008-01-22
|
* Fix DIRFD properlyChris Wilson2008-01-21
|
* Fix the test for HAVE_DECL_DIRFD, which is 0 on solaris, not undefined.Chris Wilson2008-01-20
| | | | | (I love the consistency of autotools).
* Update copyright to 2008.Chris Wilson2008-01-12
|
* Print the path of the current/default configuration file in usage.Chris Wilson2008-01-05
|
* If the address of opendir64() is NULL that is NOT a good sign, Chris Wilson2008-01-03
| | | | | regardless of whether dlerror() thinks that everything is just rosy.
* Use 64-bit versions of directory functions if we can find them, and ifChris Wilson2008-01-03
| | | | | | | we're compiling with large file support, otherwise fall back to 32-bit versions. Hopefully fixes problems with FreeBSD without breaking other platforms (raidfile tests pass on freebsd).
* Search for readdir64 and stat64 if LARGE_FILE_SUPPORT is enabled, ratherChris Wilson2007-12-18
| | | | | | than relying on Linux redirection macros that aren't present on Slackware (which uses asm redirects instead).
* Pass test options to test daemons.Chris Wilson2007-12-16
|
* Fix readdir() intercept on FreeBSD by fixing the check for redefinedChris Wilson2007-12-16
| | | | | readdir (from Linux).
* Log sleep time and resleeps in safe_sleep (only used in tests).Chris Wilson2007-12-15
|
* Don't log our own timestamp now that Logging can do it for us withChris Wilson2007-12-15
| | | | | microsecond precision.
* Allow logging with microsecond timestamps.Chris Wilson2007-12-15
|
* Report reason why killing a process failed.Chris Wilson2007-12-15
|
* Fix definition of dirfd(x) macro (autoconf doesn't like defining macrosChris Wilson2007-12-15
| | | | | with parameters).
* Restructure intercept_errornow() for clarity.Chris Wilson2007-12-13
| | | | | | | | | | | | | Move delay code out of macro and into intercept_errornow() to simplify macro. Clear hook functions in intercept_clear_setup(). Check that intercept_filename is not NULL before comparing it with anything. Change some TRACEx macros to BOX_TRACE.
* Use new logging framework for tracing diffs.Chris Wilson2007-12-06
| | | | | Log each block found and each false match at DEBUG level.
* Enable TRACE logging in release builds, but make it really cheapChris Wilson2007-12-04
| | | | | when disabled.
* Make ExtendedLogging use the logging framework so that we can viewChris Wilson2007-12-04
| | | | | the logs on the console along with other debug output.
* Slightly improve output from waiting methods.Chris Wilson2007-12-02
|
* Don't crash when trying to cleanup timers a second time (or if neverChris Wilson2007-12-02
| | | | | initialised) in release mode.
* Fix getopt reset for solaris and maybe other platforms. SeeChris Wilson2007-11-07
| | | | | http://lists.debian.org/debian-glibc/2004/10/msg00070.html.
* Use lstat() instead of stat() to check whether a file exists. Thanks toChris Wilson2007-11-05
| | | | | | | | Hans-Joachim Baader for reporting this problem. (http://lists.warhead.org.uk/pipermail/boxbackup/2007-November/003958.html) Add a test that symlinks are not followed during restore.
* Really fix unlink() during restore, fixes [1919].Chris Wilson2007-11-04
|