summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Move GNU autoconf tools into infrastructure directory.Chris Wilson2014-12-26
| | | | Add install-sh script, needed by AC_CONFIG_SUBDIRS for some reason.
* Add support for timeouts on named pipe writes, using overlapped I/O.Chris Wilson2014-12-26
|
* Fix warning about HAVE_RANDOM_DEVICE not being defined.Chris Wilson2014-12-26
|
* Fix MinGW64 compile error due to pointers being too large for uint32_t.Chris Wilson2014-12-26
|
* Fix warning about BackupClientDirectoryRecord having a non-virtual destructor.Chris Wilson2014-12-26
|
* Fix more compile errors on MinGWChris Wilson2014-12-26
|
* Fix compilation on Windows MinGW x86_64.Chris Wilson2014-12-26
| | | | | Look for libraries in the right directory, and pass the right --host option to the configure script.
* Pass --host and --build options to qdbm configure script as well.Chris Wilson2014-12-26
| | | | MinGW compile now needs --host.
* Don't add files to lists until we're sure that we'll back them up.Chris Wilson2014-12-24
|
* Whitespace and wrapping fixesChris Wilson2014-12-24
|
* Allow excluding files of unknown type using either ExcludeFile or ExcludeDir.Chris Wilson2014-12-24
|
* Fix compile error on Windows caused by refactoring out SyncDirectoryEntry.Chris Wilson2014-12-24
| | | | | | | | | Thanks to Kai Liebenau for spotting it and submitting patches. I don't see any need to actually collect link_st (using lstat) any more, because if the location root is a symlink then we should just backup everything inside its destination without question, and if it's not, comparing stat(parent) and stat(child) will detect the difference, so no need to use lstat(parent) instead.
* Replace sprintf() with snprintf(), fixes compile warnings on OpenBSD.Chris Wilson2014-12-22
| | | | | And compile errors on recent MinGW.
* Make memleakfinder_setup_exit_report() take a std::string, for C++ style.Chris Wilson2014-12-22
|
* Replace Write(const char *) with Write(const std::string&).Chris Wilson2014-12-22
| | | | | This is better for C++ style and potential missing null termination.
* Fix compile error on OpenBSD due to invalid forward declarations of classes.Chris Wilson2014-12-22
| | | | | OpenBSD's compiler appears to be more sensitive than others.
* Add a TEST_LINE_OR macro to compare strings and execute a command if no equal.Chris Wilson2014-12-21
|
* Allow writing a std::string to any SocketStream.Chris Wilson2014-12-21
|
* Fix tar commands to work on OpenBSD.Chris Wilson2014-12-21
| | | | | BSD tar seems to not like additional options after the first block.
* Increase timing accuracy of client store marker test.Chris Wilson2014-12-21
| | | | | | Test now passes reliably with any verbosity level on NetBSD, despite the really slow compares.
* Log start time of next backup when waiting with millisecond precision.Chris Wilson2014-12-21
| | | | | | | | Helps to debug tests that depend on subsecond timing. Log time to wait on command socket in fractional seconds instead of raw box_time_t.
* Fix computation of fractional second part of ShortSleep().Chris Wilson2014-12-21
| | | | | | | Reduce precision in log messages from microseconds to milliseconds. Log the amount of time actually slept in ShortSleep().
* Reduce detail on logging box_time_ts from microseconds to milliseconds.Chris Wilson2014-12-21
| | | | | | There's not much point logging with higher precision when no normal platform will deliver it.
* Add logging for functions that trigger bbackupd using bbackupctl.Chris Wilson2014-12-21
|
* Improve comment explaining SocketStream::PollTimeout function.Chris Wilson2014-12-21
|
* Add a note about why fixing NetBSD's kqueue support is harder than it looks.Chris Wilson2014-12-15
|
* Add a note about units of arguments to PollTimeout function().Chris Wilson2014-12-15
| | | | | Because they're not obvious and I wasted time trying to figure them out.
* Fix test_changing_client_store_marker_pauses_daemon on NetBSD.Chris Wilson2014-12-15
| | | | | | Running a compare takes far too long on NetBSD (3 seconds) and this was messing up the timing of the test.
* Remove unused files.Chris Wilson2014-12-15
|
* Don't stop waiitng until the deadline has actually expired.Chris Wilson2014-12-12
|
* Refactor file descriptor checks to avoid false alarms on NetBSD.Chris Wilson2014-12-12
| | | | | | Logging anything while checking for open file descriptors can reopen the syslog connection that was closed before, resulting in a false positive.
* Fix timing issue causing test_changing_client_store_marker_pauses_daemon to ↵Chris Wilson2014-12-10
| | | | | | | | fail. We didn't take into account the time taken to perform a compare as part of the test, when deciding how long to wait for bbackupd to recover.
* Fix an unnecessary pass through backup loop when time for next backup arrives.Chris Wilson2014-12-10
|
* Refactor SyncDirectory to reduce indentation and method length.Chris Wilson2014-12-10
| | | | | Move most of the code for handling individual directory entries into a separate method, SyncDirectoryEntry.
* Fix class member initialisation order to silence warnings.Chris Wilson2014-12-10
|
* Reformat long lines for readability, fix whitespace errors.Chris Wilson2014-12-10
|
* Fix intercept tests on NetBSD.Chris Wilson2014-12-10
| | | | | Thanks to Jose Luis Rodriguez Garcia for the patch!
* Log a consistent error message about every read failure, for debugging.Chris Wilson2014-12-10
|
* Add comment to explain why freshly extracted files should be backed up.Chris Wilson2014-12-10
| | | | Hopefully will help anyone trying to debug this test in future.
* The next version to be released will be 0.13.Chris Wilson2014-12-10
|
* Remove nonexistent directory from distribution manifest.Chris Wilson2014-12-10
|
* Whitespace and comment formatting fixes.Chris Wilson2014-12-10
|
* Fix build on Solaris 11/SmartOS by using bmake.Chris Wilson2014-12-07
| | | | | Refactor code to select which make is used for readability.
* Fix test_changing_client_store_marker_pauses_daemon failing randomly.Chris Wilson2014-12-06
| | | | | | | | | | | | | | The shorter delay on error, introduced recently to speed up test runs, combined with a guess about how long bbackupd would take to run a backup and discover that the client store marker had changed, meant that sometimes the daemon would have discovered the problem, aborted, waited and run again while the test was waiting for the first failure. Synchronising with the running daemon using bbackupctl wait_for_sync_end should make the test timing accurate enough. We also tighten the recovery timing checks to make sure that it's doing what it should.
* Don't start an independent daemon in test_bbackupd_exclusions.Chris Wilson2014-12-06
| | | | | We're using an internal daemon here, so we don't want an external one as well.
* Don't fail tests if running on a NetBSD system with no xattr support.Chris Wilson2014-12-06
|
* Fix detection of filesystems without extended attribute support on NetBSD.Chris Wilson2014-12-06
| | | | | | | | | | | NetBSD (version 6) uses ENOTSUP as the errno code to indicate missing support for extended attribute in the filesystem. This appears to be at odds with other Unixes: https://mail-index.netbsd.org/tech-kern/2011/12/13/msg012185.html We need to detect and handle ENOTSUP to stop the backup daemon from killing itself while trying to read extended attributes from the first file in the backup set.
* Fix stupid typo on struct member names.Chris Wilson2014-12-06
|
* Fix missing include of sys/socket.h to find struct ucred on Linux.Chris Wilson2014-12-06
|
* Check for existence of netdb.h for conditional inclusion.Chris Wilson2014-12-06
|