summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* Fix typo in variable name.Chris Wilson2008-11-15
|
* Use the same ostringstream formatting for protocol logging to fileChris Wilson2008-10-29
| | | | | | that we use for standard logging, to fix 64bit platform warnings reported by Matt Brown.
* Silence warnings from openbsd gcc by using strncpy instead of strcpy.Chris Wilson2008-10-26
|
* Check whether HAVE_UCRED_H is defined, not whether its value is 1.Chris Wilson2008-10-24
|
* Add missing #include <errno.h>, needed by FreeBSD and Solaris at least.Chris Wilson2008-10-24
|
* Report the filename that failed when various file attribute syscallsChris Wilson2008-10-21
| | | | | | | fail, for example setting, listing or reading extended attributes, or creating or changing the owner of a symlink. Thanks to Torsten for noticing that the filename was not reported in these cases.
* Fix compile errors on Debian Lenny, reported by Torsten.Chris Wilson2008-10-17
|
* Ensure that _FILE_OFFSET_BITS is defined before testing its value.Chris Wilson2008-10-11
| | | | | | Move definition of DEFINE_ONLY_OPEN64 into intercept.cpp which is the only place that should use it.
* FreeBSD is very strict about vararg types and aborts at runtime ifChris Wilson2008-10-11
| | | | | | the type passed to va_arg() has been promoted, so let's keep it happy by using ints instead.
* Don't blindly use an undefined symbol in #if.Chris Wilson2008-10-11
|
* 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.
* Fix intercept compile problem on Solaris, and hopefully on other platformsChris Wilson2008-10-11
| | | | | with large file support.
* 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
|