Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Replace all remaining use of TRACEx() macros with logging framework. | Chris Wilson | 2008-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 Wilson | 2008-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) and | Chris Wilson | 2008-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. | ||
* | Add support for logging just to syslog (not console) at a given | Chris Wilson | 2008-03-01 |
| | | | | | priority. | ||
* | Don't try to define our own dirfd() macro on platforms where interception | Chris Wilson | 2008-02-25 |
| | | | | | is impossible (such as win32) because it's not needed and fails on win32. | ||
* | Disable -P option and showing PID in Logging on Windows. | Chris Wilson | 2008-02-22 |
| | |||
* | Add support for microsecond timestamps and PID logging on console log | Chris Wilson | 2008-01-31 |
| | | | | | for daemons. | ||
* | Add support for nanosecond timestamps in struct stat on Linux. | Chris Wilson | 2008-01-31 |
| | |||
* | Update version on MSVC config. | Chris Wilson | 2008-01-29 |
| | |||
* | Change the default sysconfdir to /etc. | Chris Wilson | 2008-01-28 |
| | | | | | | | | | | | | | Generate expanded versions of sysconfdir and localstatedir, as well as bindir. Expand variables in BoxPortsAndFiles.h.in. Changed default configuration dir in BoxPortsAndFiles.h.in to use @sysconfdir_expanded@/box, defaulting to /etc/box as before. But now you can override it with something like --sysconfdir=/usr/etc (to place config files in /usr/etc/box). | ||
* | Detect whether struct DIR has d_fd or dd_fd member and define the | Chris Wilson | 2008-01-22 |
| | | | | | dirfd() macro accordingly. | ||
* | memleakfinder_atexit() should be extern "C" to silence warnings. | Chris Wilson | 2008-01-22 |
| | |||
* | Silence const char warnings, part deux. | Chris Wilson | 2008-01-22 |
| | |||
* | Use const char pointers to silence sun CC warnings. | Chris Wilson | 2008-01-22 |
| | |||
* | Fix DIRFD properly | Chris Wilson | 2008-01-21 |
| | |||
* | Fix the test for HAVE_DECL_DIRFD, which is 0 on solaris, not undefined. | Chris Wilson | 2008-01-20 |
| | | | | | (I love the consistency of autotools). | ||
* | Update copyright to 2008. | Chris Wilson | 2008-01-12 |
| | |||
* | Pass test options to test daemons. | Chris Wilson | 2007-12-16 |
| | |||
* | Log sleep time and resleeps in safe_sleep (only used in tests). | Chris Wilson | 2007-12-15 |
| | |||
* | Don't log our own timestamp now that Logging can do it for us with | Chris Wilson | 2007-12-15 |
| | | | | | microsecond precision. | ||
* | Allow logging with microsecond timestamps. | Chris Wilson | 2007-12-15 |
| | |||
* | Fix definition of dirfd(x) macro (autoconf doesn't like defining macros | Chris Wilson | 2007-12-15 |
| | | | | | with parameters). | ||
* | Enable TRACE logging in release builds, but make it really cheap | Chris Wilson | 2007-12-04 |
| | | | | | when disabled. | ||
* | Slightly improve output from waiting methods. | Chris Wilson | 2007-12-02 |
| | |||
* | Don't crash when trying to cleanup timers a second time (or if never | Chris Wilson | 2007-12-02 |
| | | | | | initialised) in release mode. | ||
* | Use lstat() instead of stat() to check whether a file exists. Thanks to | Chris Wilson | 2007-11-05 |
| | | | | | | | | Hans-Joachim Baader for reporting this problem. (http://lists.warhead.org.uk/pipermail/boxbackup/2007-November/003958.html) Add a test that symlinks are not followed during restore. | ||
* | Allow ObjectExists() to take a std::string instead of just char *. | Chris Wilson | 2007-11-04 |
| | |||
* | Make sync_and_wait() do what it's supposed to, not just force a sync. | Chris Wilson | 2007-11-04 |
| | |||
* | Log an error if we fail to open the lockfile. | Chris Wilson | 2007-11-04 |
| | |||
* | Move sync helper functions from test/bbackupd to Test.h to share with | Chris Wilson | 2007-11-04 |
| | | | | | other tests, particularly test/backupstorefix. | ||
* | sigemptyset() is a macro on OSX 10.3, so don't prepend :: | Chris Wilson | 2007-11-03 |
| | |||
* | Bite the bullet and use sigaction() instead, since [1803] shows that | Chris Wilson | 2007-10-22 |
| | | | | | | signal() works badly on SuckOS, and James reports that BSD doesn't have sigset(). | ||
* | Make detailed timer debugging work on Windows as well. | Chris Wilson | 2007-10-17 |
| | | | | | | | Add a couple of macros to clean up the code. (merges [1857]) | ||
* | Remove default pipe name to prevent applications from using it. (merges | Chris Wilson | 2007-10-17 |
| | | | | | [1835]) | ||
* | Fix double backslashes | Chris Wilson | 2007-10-08 |
| | |||
* | Revert to decimal properly, and also after logging an Object ID. | Chris Wilson | 2007-10-08 |
| | |||
* | Log the name of missing configuration keys before throwing exception. | Chris Wilson | 2007-10-08 |
| | |||
* | Revert from hex to decimal default format after logging an account number. | Chris Wilson | 2007-10-08 |
| | |||
* | Compile fix. | Chris Wilson | 2007-09-23 |
| | |||
* | Fix compiler warning. (merges [1820], [1821]) | Chris Wilson | 2007-09-07 |
| | |||
* | Format account number properly (8 hex digits). | Chris Wilson | 2007-09-01 |
| | |||
* | Use sigset() instead of signal() to ensure that SysV systems (like Solaris) | Chris Wilson | 2007-09-01 |
| | | | | | will not clear our signal handler after firing it. | ||
* | Convert most printf() and fprintf() calls to use logging framework | Chris Wilson | 2007-08-02 |
| | | | | | instead. (refs #3) | ||
* | Undo removal of syslog() header, still needed in this file. | Chris Wilson | 2007-08-02 |
| | |||
* | Replace almost all calls to syslog() with logging framework. (refs #3) | Chris Wilson | 2007-07-31 |
| | |||
* | Make Configuration take a std::string filename instead of a char array, | Chris Wilson | 2007-07-26 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in C++ style. Add a function to get default config file paths at runtime, dependent on the location of the executable being run. Pass the config file name directly to Daemon::Main, instead of faking argv. No default raid file path at compile time on Windows, depends on executable location when run. Determine RaidFile path at runtime if not supplied in config file on Windows. Don't define default locations for config files at compile time on Windows, provide macros to determine them at runtime instead. Make FileHandleGuard take a std::string instead of a char array, C++ style. Determine config file location at runtime instead of hard-coding on Windows. Thanks to Paul MacKenzie, Per Thomsen, Pete Jalajas, Stuart Sanders, Dave Bamford and Gary for pushing me to do this. (fixes #12) Determine config file path at runtime. Call Daemon::Main with config file name instead of building fake argv. (refs #3, merges [1684] [1685] [1686] [1687] [1688] [1689] [1690] [1691] [1692]) | ||
* | Make Configuration take a std::string filename instead of a char array, | Chris Wilson | 2007-07-26 |
| | | | | | in C++ style. (refs #3, merges [1684]) | ||
* | Work around the fact that we may have regex support without having | Chris Wilson | 2007-07-26 |
| | | | | | | | regex.h (e.g. from pcreposix.h/libpcreposix) and disabuse HAVE_REGEX_H, define and use HAVE_REGEX_SUPPORT instead, thanks Gary! (refs #3, merges [1677] [1678] [1679]) | ||
* | Update copyright to 2007. (refs #3, merges [1670]) | Chris Wilson | 2007-07-26 |
| | |||
* | Define DEBUG_NEW in the same file whether or not BOX_MEMORY_LEAK_TESTING | Chris Wilson | 2007-07-26 |
| | | | | | is defined, thanks Gary. (refs #3, merges [1668]) |