summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* Use Windows Crypto API to seed the random number generator, and removeChris Wilson2008-10-08
| | | | | warning that it hasn't been seeded on Windows.
* Remove Win32 command socket thread, as it has caused too much trouble.Chris Wilson2008-10-03
| | | | | | | | | | | Handle command socket on Win32 the same as all other platforms, removing #ifdefs from BackupDaemon. Will replace this thread with regular but not excessive command socket polling using timers in future. Change error messages when command socket comms fail to make them clearer.
* Remove -K option which now does nothing on Windows.Chris Wilson2008-10-03
| | | | | Add -Q option which disables all logging instead.
* Utility classes to be used by new Windows named pipe framework.Chris Wilson2008-10-03
|
* Spacing and additional stream header byte logging.Chris Wilson2008-10-03
|
* More debugging, log type of stream received and fix logging of header byte.Chris Wilson2008-10-03
|
* Additional debugging for protocol stream deadlock reported byChris Wilson2008-09-30
| | | | | Matt Brown.
* Add file logging support (LogFile and LogFileLevel config options).Chris Wilson2008-09-26
| | | | | | | | | | | | | | | | Ensure that backup-finish is always called, and add a new event, backup-ok, which is called just before backup-finish when the backup run was successful. Keep track of the last backup status notification sent (excluding backup-start and backup-finish) and send a notification whenever it changes. Add a new boolean option, NotifyAlways, to override that check and always send notifications to the NotifyScript after every backup run, for notify scripts which do their own state tracking or otherwise require notification on every event.
* Fix compilation of open64() intercept.Chris Wilson2008-09-26
|
* 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
|
* Log reason for any waitpid() failure.Chris Wilson2008-09-26
|
* Set console and syslog logging levels rather than global logging level,Chris Wilson2008-09-26
| | | | | as we may want to do something different when logging to a file.
* Use named timer for MaximumDiffingTime.Chris Wilson2008-09-26
|
* FIx [2285] properly for Windows.Chris Wilson2008-09-14
|
* Compile fix for [2285].Chris Wilson2008-09-14
|
* Prefix event log application name with Box Backup, and remove it fromChris Wilson2008-09-14
| | | | | | | | | | all calls to SetProgramName, for better consistency on Unix. Make bbstoreaccounts and bbackupctl set their program names for logging. Don't override supplied tag with service name when BackupDaemon is run as a service.
* 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.
* Reformat for readability.Chris Wilson2008-09-06
| | | | | Use SecureZeroMemory rather than memset() to wipe key material on Windows.
* 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.
* Call virtual NotifyListenerIsReady() method when listening socket is Chris Wilson2008-08-21
| | | | | ready, for Boxi thread synchronisation.
* Use ForkToHandleRequests in ServerStream template call to avoid compiler Chris Wilson2008-08-21
| | | | | errors.
* 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.
* Make Open() take a const std::string& for the socket name instead of a Chris Wilson2008-08-21
| | | | | const char *, for C++ style.
* Only set spDaemon in Daemon::Main, to allow Boxi to have a BackupDaemon Chris Wilson2008-08-21
| | | | | | | | | | | | and a BackupStoreDaemon in the same process in separate threads. Separate out Configure(filename) and Configure(Configuration) for Boxi. Use a std::auto_ptr to hold the Configuration so that we don't have to worry about releasing it ourselves. Remove some #ifdef WIN32.
* Allow constructing Configuration objects from scratch (for Boxi).Chris Wilson2008-08-21
| | | | | Add a separate Verify() method.
* Spelling fix.Chris Wilson2008-08-21
|
* Take a const std::string& for the filename rather than a const char *, Chris Wilson2008-08-21
| | | | | for C++ style.
* 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).
* Run status provider interface, needed to connect Box Backup to Boxi and Chris Wilson2008-08-21
| | | | | potentially other frontends and allow stopping a backup in progress.
* 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
|
* Map ERROR_SHARING_VIOLATION to EBUSY in openfile().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
|
* Allow waiting for a process while killing it, will be needed for testsChris Wilson2008-08-07
| | | | | that fork() to avoid zombies and for ServerIsAlive to work.
* Allow externally controllic whether a daemon will run in the foregroundChris Wilson2008-08-07
| | | | | or not, will need this for running tests with internal bbstored.
* 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.
* Formatting fix.Chris Wilson2008-08-06
|
* 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.
* Really enable PID logging on Windows.Chris Wilson2008-08-03
|
* Enable logging of PID on Windows.Chris Wilson2008-08-03
| | | | | Enable both -k and -K options on all platforms.
* Log error when rename over RaidFile fails on Windows.Chris Wilson2008-08-03
|