summaryrefslogtreecommitdiff
path: root/lib/common
Commit message (Collapse)AuthorAge
* Use getpeerucred() to identify connecting socket clients on Solaris,Chris Wilson2008-10-11
| | | | | | | | and silence warnings that the peer cannot be identified on this platform. Remove another use of uname -o which doesn't work on Solaris.
* Fix spurious memory leak warnings on Solaris when using Sun StudioChris Wilson2008-10-11
| | | | | compiler.
* Remove #ifdef WIN32 as we now define O_BINARY to 0 on Unixes, soChris Wilson2008-09-26
| | | | | the same code can be used for both.
* Log reason for failing to write to a file.Chris Wilson2008-09-26
|
* Add file logger class.Chris Wilson2008-09-26
|
* Replace timer name when assigning from another timer.Chris Wilson2008-09-26
|
* Unify program name and console logging tags.Chris Wilson2008-09-13
| | | | | | Add a new class, Logging::Tagger, which can be used to temporarily add information to the program name, such as the client ID in bbstored.
* Fix test regression on Windows where a const char pointer was treatedChris Wilson2008-09-07
| | | | | as a file handle instead of as a string.
* Better handle the case where __MSVCRT_VERSION__ is already defined (e.g. Chris Wilson2008-08-21
| | | | | | | | | by wxWidgets) before including Box.h, as long as the defined version is high enough, to avoid mutual incompatibility with wxWidgets (needed for Boxi). Define O_BINARY if it's not already defined rather than using configury.
* Add a Flush() method to IOStream to read and discard all remaining data, Chris Wilson2008-08-21
| | | | | | and a SelfFlushingStream class which can be used to ensure that protocol streams are always flushed, to avoid breaking protocol.
* Allow constructing Configuration objects from scratch (for Boxi).Chris Wilson2008-08-21
| | | | | Add a separate Verify() method.
* Pass a RunStatusProvider and a ReadLoggingStream::Logger from Chris Wilson2008-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BackupDaemon through BackupClientDirectoryRecord, BackupStoreFile and BackupStoreFileEncodeStream to ReadLoggingStream, to allow progress callbacks during file upload and cancelling upload part-way. Implement ReadLoggingStream::Logger in BackupClientDirectoryRecord::SyncParams, which thunks the notifications back to the ProgressNotifier. Add the SysadminNotifier interface from Boxi. Add NotifyIDMapsSetup() to ProgressNotifier. Change BackupClientDirectoryRecord::SyncParams to store references to the individual callback interfaces rather than BackupDaemon. Initialise all members in BackupDaemon. Add ability for BackupDaemon user to override the ProgressNotifier, LocationResolver, SysadminNotifier and RunStatusProvider that will be used during the backup. Make BackupDaemon::Location class public and provide access to the configured locations for Boxi (dangerous, they could be modified without BackupDaemon knowing it).
* Change FileStream constructor to take a const std::string& instead of a Chris Wilson2008-08-21
| | | | | char array pointer, for C++ style.
* Make test failures more obvious, and log them through logging framework.Chris Wilson2008-08-11
|
* Convert console logging output to console encoding on Windows.Chris Wilson2008-08-09
|
* Win32 compile fix for WaitForServerStartup.Chris Wilson2008-08-08
|
* Replace manual pointer management with std::auto_ptr.Chris Wilson2008-08-08
|
* Separate LaunchServer and WaitForServerStartup.Chris Wilson2008-08-07
|
* Add machine-readable output mode (with -m option) to bbstoreaccounts info.Chris Wilson2008-08-07
|
* When dumping stack traces, allow libc to allocate its own memory, ratherChris Wilson2008-08-06
| | | | | | than trying to manage a buffer ourselves, and free it with std::free without memory leak tracing.
* Allow passing C strings into TEST_FAIL_WITH_MESSAGE, not just string constants.Chris Wilson2008-08-06
|
* Log a warning with the file that couldn't be opened and the error code,Chris Wilson2008-08-06
| | | | | to help debus issues Pete Jalajas is having with Amazon S3 and fuse.
* Remove Windows limitation on Logging that showing PID was not possible.Chris Wilson2008-08-03
|
* New timer implementation using TimerQueue on Windows to avoid the needChris Wilson2008-07-27
| | | | | to create and manage a separate thread ourselves.
* On Windows XP, you can open a process even after it's terminated, toChris Wilson2008-07-27
| | | | | | retrieve the exit code, so the check for process liveness has to be modified to make the basicserver test pass.
* Use the new time function when generating console log messages.Chris Wilson2008-07-27
|
* Add a function to format a BoxTime as a human-readable time onlyChris Wilson2008-07-27
| | | | | (for use in logging).
* Fix includes to get getpid() on Solaris and to make them easier to read.Chris Wilson2008-07-06
|
* Remove comma from last item in enum, to silence warnings from solaris cc.Chris Wilson2008-07-06
|
* Compile fix for strerror() on RedHat 9, thanks to Alex Howansky.Chris Wilson2008-06-30
|
* Fix strerror include. Needed for gcc 4.3Martin Ebourne2008-05-29
|
* Fix possible memory corruption while dumping stack trace due to Chris Wilson2008-05-28
| | | | | mismatching new []/delete.
* Check that Box.h has been included early enough.Chris Wilson2008-05-28
|
* Include "Box.h" in the right place.Chris Wilson2008-05-28
|
* Demangle C++ names in backtrace on GCC using C++ ABI routines.Chris Wilson2008-05-28
|
* Add static Logging::GetNamedLevel() method to return a log level Chris Wilson2008-05-28
| | | | | specified by name as a string.
* Separate checks for file existing and file not empty.Chris Wilson2008-05-28
|
* Reformat for readability.Chris Wilson2008-05-28
|
* Add backtrace on exception in release builds.Chris Wilson2008-05-28
|
* Fix typo.Chris Wilson2008-04-30
|
* Additional #includes, thanks to the T2 ProjectChris Wilson2008-04-18
| | | | | (http://www.t2-project.org/packages/boxbackup.html)
* Move test helper functions out-of-line to aid debugging by allowingChris Wilson2008-04-09
| | | | | breakpoints to be set on them.
* Comment wrapping fix from [1958]Chris Wilson2008-04-05
|
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Make usage output (from bbstoreaccounts info and bbackupquery usage)Chris Wilson2008-04-03
| | | | | | consistent and easier to read, with blocks, B/kB/MB/GB, % and an ASCII bar graph.
* Fix a bug where trying to log a variable called "line" would log the addressChris Wilson2008-03-30
| | | | | of the std::ostringstream instead (duh, I hate macros).
* Replace all remaining use of TRACEx() macros with logging framework.Chris Wilson2008-03-29
| | | | | Remove the old TRACEx macros to catch any remaining uses.
* 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.