summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* Fix bbackupd choosing an invalid (too large) block size for large filesChris Wilson2007-04-28
| | | | | | | (over 2GB) which will cause compare to fail: when rBlockSizeOut == BACKUP_FILE_MAX_BLOCK_SIZE we would have proceeded around the loop one more time and doubled the block size again. (refs #2, refs #3)
* Fix getting files with uncertain size (over 2GB) from the store. FailureChris Wilson2007-04-28
| | | | | | to drain the stream will leave the EOF byte in it, which breaks further communications with the store over the same connection. (refs #2, refs #3)
* Don't fork to handle requests when running as a single process (veryChris Wilson2007-04-28
| | | | | useful for debugging). (refs #3)
* Remove comments accidentally left in [1591]. (refs #3)Chris Wilson2007-04-28
|
* Make Daemon remember whether we're supposed to run in a single process,Chris Wilson2007-04-28
| | | | | or not. (refs #3)
* Use ReadLoggingStream to log progress of file uploads. (refs #3)Chris Wilson2007-04-28
|
* Add a stream which logs progress of reading data from another (child)Chris Wilson2007-04-28
| | | | | | stream, and estimated time of completion, useful for upload progress monitoring. (refs #3)
* Keep a copy of the program name, in case the original goes away, whichChris Wilson2007-04-28
| | | | | causes syslog() to write nonsense for the program name. (refs #3)
* Fix inability to handle streams over 2GB properly. (refs #3)Chris Wilson2007-04-28
|
* Add a stream which provides a source of zero bytes of arbitrary size,Chris Wilson2007-04-28
| | | | | useful for testing support for files over 2GB. (refs #3)
* Ignore attempts to listen on a Unix socket on Win32, so that we can shareChris Wilson2007-04-22
| | | | | config files for the unit tests (refs #3)
* Merge [1566] from chris/general:Chris Wilson2007-04-22
| | | | | | | | | Use Sleep() instead of nanosleep again on win32 (lost in merge [1562]). Fix reference to pCommandLine which no longer exists after [1562]. Fix signed/unsigned comparison warning. (refs #3)
* Compile fix for Win32, where no localtime_r is available and localtimeChris Wilson2007-04-22
| | | | | is thread safe. (refs #3)
* Display file and line where memory leak test failed. (refs #3)Chris Wilson2007-04-22
|
* Add -V option, which sets maximum verbosity in one go.Chris Wilson2007-04-22
| | | | | | | | | | | Add -T option, which adds timestamps to console logs. Add -t option, which enabled and sets the tag used on console logs. Add -k option, which keeps console open after forking. (refs #3)
* Add options to log timestamps, and a custom tag, with each message toChris Wilson2007-04-22
| | | | | | | | | the console, e.g.: 14:53:17 [bbackupd] Finished scan of local files (refs #3)
* Use logging framework to log stack traces from exceptions. (refs #3)Chris Wilson2007-04-22
|
* Use logging framework to log exceptions. (refs #3)Chris Wilson2007-04-22
|
* Declare global std::string variables that hold extra arguments forChris Wilson2007-04-22
| | | | | | | | | | | | | executables run in tests, to be implemented in a follow-up patch. ConvertPaths, LaunchServer and RunCommand all take std::string references instead of char*. Move safe_sleep from test/common to lib/server/Test.h so that all tests can use it. (refs #3)
* Compile fix, always include Test.h (refs #3)Chris Wilson2007-04-21
|
* Don't log errors or throw exceptions when we get ERROR_NO_DATA, which justChris Wilson2007-04-20
| | | | | | | | | | | | | | | means that the pipe is being closed. Treat it as a normal remote close (EOF) instead. Don't log an error if DisconnectNamedPipe tells us that the remote end already closed the pipe (ERROR_PIPE_NOT_CONNECTED). Treat ERR_PIPE_NOT_CONNECTED during pipe reads as EOF as well. Improve logging of pipe errors by including the error message. (refs #3, merges [1458] and [1463])
* Fix erroneous line break.Chris Wilson2007-04-20
|
* Added commentary to RaidFileDoesntExist exception.Chris Wilson2007-04-20
|
* Allow '/' as a path separator on all platforms, even Win32 (refs #3,Chris Wilson2007-03-25
| | | | | merges [1496])
* Fix unix path to bbstored (refs #3)Chris Wilson2007-03-25
|
* Added precompiled output from message compiler, for those who don'tChris Wilson2007-03-24
| | | | | have it, e.g. using MinGW instead of MSVC. (refs #3, merges [526])
* Indent cleanup (refs #3)Chris Wilson2007-03-24
|
* Compile fix to [1448] (refs #3)Chris Wilson2007-03-24
|
* Improve logging of pipe errors by including the error message. (refs #3,Chris Wilson2007-03-24
| | | | | merges part of [1458])
* Fix header include order. (refs #3, merges [1446])Chris Wilson2007-03-24
|
* Use logging framework to remove timer noise for those who don't want it.Chris Wilson2007-03-24
| | | | | (refs #3, merges [1445])
* Trivial code simplification. (refs #3, merges [1444])Chris Wilson2007-03-24
|
* Reduce default logging level in debug builds from TRACE back down to INFO,Chris Wilson2007-03-24
| | | | | to reduce noise in tests. (refs #3, merges [1441])
* Use logging framework to reduce noise for those who don't want itChris Wilson2007-03-24
| | | | | (refs #3, merges [1439] [1440] [1443])
* Initialise logging framework and set our program name to Box Backup (bbstored)Chris Wilson2007-03-24
| | | | | (refs #3, merges [1462])
* Add emulated rename() with path conversion. (refs #3, merges [1436] andChris Wilson2007-03-24
| | | | | [1438])
* Change named pipe from message to byte mode. Thanks to Charles LeckliderChris Wilson2007-03-24
| | | | | for pointing this out.
* Use memmove() for overlapping source and destination buffer. Thanks toChris Wilson2007-03-24
| | | | | Charles Lecklider for pointing this out. (refs #3, merges [1442])
* Reinitialise the OVERLAPPED structure each time we start a new overlappedChris Wilson2007-03-24
| | | | | | read. Thanks to Charles Lecklider for pointing this out. (refs #3, merges part of [1458])
* Fix compilation error reported by Torsten Boob (refs #3)Chris Wilson2007-03-24
|
* Move lib/common/ServerControl.h to lib/server where it belongs, sinceChris Wilson2007-03-22
| | | | | it uses server functions (WinNamedPipeStream on win32) (refs #3)
* Log at trace level by default in debug builds (refs #3)Chris Wilson2007-03-22
|
* Flush stdout when writing to it (refs #3)Chris Wilson2007-03-22
|
* Remove #ifdefs, no longer required (refs #3, merges [1418])Chris Wilson2007-03-10
|
* Group remaining set*id() and get*id() functions. Improve comments aboutChris Wilson2007-03-10
| | | | | why they are being retained. (refs #3, related to [634])
* Add new syslog level emulations (refs #3, merges remainder of [1299])Chris Wilson2007-03-10
|
* Reorder for clarityChris Wilson2007-03-10
| | | | | | | | | Expose GetErrorMessage() Improve comments (refs #3, merges [1365])
* Remove #define BOX_VERSION since we now get it from BoxVersion.h viaChris Wilson2007-03-10
| | | | | | BoxPlatform.h when building with MSVC, and from the Makefiles when building with MinGW. (refs #3, merges part of [634])
* Use #defines to replace POSIX functions with emulated ones on MinGW,Chris Wilson2007-03-10
| | | | | | | | | | | | | like we do on MSVC. This allows us to #undef them when we really need to use the original platform function (if available). Disable emulated fstat() in raidfile (and use the platform one) by undefining fstat, since it doesn't use the other emulated file handling functions, or need Unicode support, and it can't take a filehandle returned by open() (only openfile()). (refs #3, merges [1045])
* Compile fix for [1397] (refs #3)Chris Wilson2007-03-10
|