Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Set process title on Windows. | Chris Wilson | 2013-08-25 |
| | | | | | | Thanks to Arnaud for submitting the patch: "I propose a little patch to enable the SetProcessTitle function on windows system." | ||
* | Re-enable test_dir_fixing. | Chris Wilson | 2013-08-22 |
| | |||
* | Improve debugging messages after repairing a directory. | Chris Wilson | 2013-08-22 |
| | | | | | | | | | | | Report whether the directory still had errors after the first pass of dir.CheckAndFix(), and also whether a file is marked as both Old and Deleted, which means that its block usage is not accounted for anywhere. There's possibly still a bug here where an invalid directory entry that is itself a directory may not result in the parent directory being marked as isModified and written back out afterwards, which may be what's happening to Markus Grunwald (failure to correct the error with "check fix"). | ||
* | Fix a bug where bbstoreaccounts check could hang or crash. | Chris Wilson | 2013-08-22 |
| | | | | | | | It's not safe to use an iterator after the underlying collection has been modified. We need to restart iterating over the directory in that case. Otherwise we could loop forever looking for an end() that we've already passed, or start accessing unallocated memory. | ||
* | Improve variable names and comments. | Chris Wilson | 2013-08-22 |
| | | | | Makes the source code more readable. | ||
* | Improve error messages from BackupCommands. | Chris Wilson | 2013-08-22 |
| | | | | | | When a command is sent in the wrong phase, or a command that requires write access is sent to a read-only session, log an error message with the command details (and current phase in the former case). | ||
* | Refactor testbackupstorefix. | Chris Wilson | 2013-08-22 |
| | | | | | | Preparation work for better testing of fixing directories with entries that no longer exist on disk. Related to debugging the problems reported by Markus Grunwald. | ||
* | Pass std::auto_ptr objects to Protocol for upload. | Chris Wilson | 2013-08-22 |
| | | | | | | | | | | | Passing raw pointers is bad C++ style, and dangerous, because Protocol will free the passed-in pointers after uploading them, so we should not keep using them. Reduce code duplication in BackupClientDirectoryRecord patch/normal upload. Return a std::auto_ptr<BackupStoreFileEncodeStream> instead of a std::auto_ptr<IOStream> from BackupStoreFile::EncodeFile* functions. | ||
* | Add a ToString() method on protocol objects, to help with debugging them. | Chris Wilson | 2013-08-21 |
| | |||
* | Add support for the -W option to test runner executable. | Chris Wilson | 2013-08-21 |
| | |||
* | Allow getting the name of the current phase of a BackupStoreContext. | Chris Wilson | 2013-08-21 |
| | | | | | Useful for debugging when the phase is not as expected. | ||
* | Pass std::strings to functions instead of const char *, for C++ style. | Chris Wilson | 2013-08-21 |
| | |||
* | Add ability to generate memory usage reports while running. | Chris Wilson | 2013-02-13 |
| | | | | | | | | | | | | * ./configure CXXFLAGS=-DDEBUG_LEAKS * Build and run the binary as normal (release or debug) * Send SIGUSR1 to the process (e.g. killall -USR1 bbstored) * Check the system logs, or the console. Not safe for use on a production process, as it does illegal things in a signal handler that may result in the process hanging. Use only for debugging, and be prepared to kill any stuck processes. | ||
* | Fix compile error due to missing mode on open(O_CREAT). | Chris Wilson | 2013-02-13 |
| | |||
* | Link testbbackupd with bbackupquery object files, so that we can use | Chris Wilson | 2012-11-27 |
| | | | | | BackupQueries directly for debugging compare failures. | ||
* | Fix failure to list files properly when not using a console on Win32 | Chris Wilson | 2012-11-27 |
| | | | | | (e.g. from Cygwin command prompt). | ||
* | Allow getting the standard Console and Syslog loggers. Add a Guard class | Chris Wilson | 2012-11-27 |
| | | | | | that can be used to protect against permanent changes to their log levels. | ||
* | Use THROW macro to report error getting file attributes. | Chris Wilson | 2012-11-27 |
| | |||
* | Log reason for housekeeping, or not (timer status). | Chris Wilson | 2012-11-27 |
| | |||
* | Fix testbackupstore: don't keep using a reference to a protocol object | Chris Wilson | 2012-11-18 |
| | | | | | that's been disposed (Windows only). | ||
* | Fix random failures of bbackupd test by locking the account before making | Chris Wilson | 2012-11-18 |
| | | | | | changes to it. | ||
* | Cosmetic improvements to bbstored log message tagging. | Chris Wilson | 2012-11-18 |
| | |||
* | Finish incomplete checkin [3156]. | Chris Wilson | 2012-11-18 |
| | |||
* | Add a helper in BackupStoreAccounts to get a write lock on an account. | Chris Wilson | 2012-11-18 |
| | | | | | | Use it in two places to simplify code (not in BackupStoreContext yet, because that wants to communicate with HK process as well). | ||
* | Allow passing a std::string instead of char* to BackupStoreAccountDatabase, | Chris Wilson | 2012-11-18 |
| | | | | | for C++ style. | ||
* | Fix duplicate tagging of housekeeping messages. | Chris Wilson | 2012-11-17 |
| | |||
* | Fix missing space in log message. | Chris Wilson | 2012-11-17 |
| | |||
* | Use more efficient direct reset of Timers instead of assignment. | Chris Wilson | 2012-11-17 |
| | |||
* | Fix account deletion on Windows by removing write lock before deleting | Chris Wilson | 2012-11-17 |
| | | | | | files. | ||
* | Fix timer miscalculation on Windows. | Chris Wilson | 2012-11-17 |
| | |||
* | We need rm -f to remove read-only files from .svn directory copies in testfiles. | Chris Wilson | 2012-11-15 |
| | |||
* | Don't use getpeername(), sys/socket.h or sys/un.h on platforms that don't | Chris Wilson | 2012-11-14 |
| | | | | | include them, to fix compile on Windows. | ||
* | Use AC_SEARCH_LIBS instead of AC_CHECK_LIB when searching for SSL | Chris Wilson | 2012-11-14 |
| | | | | | libraries, to avoid adding duplicate libraries to LIBS. | ||
* | Use AC_SEARCH_LIBS instead of AC_CHECK_LIB to search for EVP_CipherInit_ex, | Chris Wilson | 2012-11-14 |
| | | | | | | | | | | | | as it should already be in LIBS by this point and we don't really want to add a duplicate if we don't need it. http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Libraries.html also recommends the use of AC_SEARCH_LIBS instead. Check whether we have getpeername() and sys/un.h to fix compile errors on Windows with /dev/log fd leak test. | ||
* | Request linker to statically link libz.a, since the default now appears to | Chris Wilson | 2012-11-14 |
| | | | | | | | | | be dynamic linking, and that stops the tests from working since they can't find zlib-1.dll in the PATH. Remove redundant LIBS that should already be detected and used by the m4 configury. | ||
* | Don't flag an error if the only sockets "leaked" are syslog sockets. | Chris Wilson | 2012-11-08 |
| | |||
* | Link to HousekeepStoreAccount.o in the right directory since the big refactor. | Chris Wilson | 2012-11-08 |
| | |||
* | Check for /dev/log and don't report if fds to it are leaked. | Chris Wilson | 2012-11-08 |
| | |||
* | Ensure that newly created accounts are enabled by default. | Chris Wilson | 2012-11-08 |
| | |||
* | Fix compile failure due to removal of fields from BackupClientContext. | Chris Wilson | 2012-11-08 |
| | |||
* | Fix additional space before [FILENAME NOT ENCRYPTED] causing test failures. | Chris Wilson | 2012-11-08 |
| | |||
* | Fix missing #include for MemBlockStream.h | Chris Wilson | 2012-11-08 |
| | |||
* | Test that BackupStoreInfo::CreateForRegeneration saves AccountEnabled | Chris Wilson | 2012-11-08 |
| | | | | | flag and ExtraData. | ||
* | Make CreateForRegeneration save the AccountEnabled flag and any extra data | Chris Wilson | 2012-11-08 |
| | | | | | copied from the original info file. | ||
* | Allow constructing an empty MemBlockStream, as it's useful for tests. | Chris Wilson | 2012-11-08 |
| | |||
* | Remove commented-out method copied from BackupStoreInfo and not used. | Chris Wilson | 2012-11-07 |
| | |||
* | Replace magic number 1000 with MILLI_SEC_IN_SEC when initialising timers. | Chris Wilson | 2012-11-07 |
| | | | | | Add the start of ExperimentalSnapshotMode support. | ||
* | Fix incorrect logging of timer assignment, and format expiry time as a human ↵ | Chris Wilson | 2012-11-07 |
| | | | | time. | ||
* | Refactor and improve timer trace logging, fix subsecond formatting error. | Chris Wilson | 2012-11-07 |
| | |||
* | BOX_FORMAT_MICROSECONDS doesn't make sense unless the digits to the right | Chris Wilson | 2012-11-07 |
| | | | | | of the decimal point are padded properly. |