summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Fix bbackupquery accepting a command starting with options.Chris Wilson2014-02-07
| | | | | | | This should never have been a valid command, but was accepted before, and silently ignored because it was treated as an empty command. This obscured bad quoting of bbackupquery command-line arguments, allowing commands to appear to work, but not do what you expected.
* Revert "Fix compile error introduced by bbstoreaccounts refactor."Chris Wilson2014-02-07
| | | | This reverts commit 9d0580c58025ba94bee02cdc2aae3fe0b6ccf604.
* Fix compile error introduced by bbstoreaccounts refactor.Chris Wilson2014-02-07
|
* Add ReleaseWriteLock to BackupStoreContext.Chris Wilson2014-02-07
| | | | Not really an API, but useful for BackupProtocolLocal2.
* Close syslog before checking for files left open in tests.Chris Wilson2014-02-07
| | | | Otherwise we might detect the opened syslog socket as a leaked file descriptor.
* Add a Git ignore file to help developers using Git.Chris Wilson2014-02-07
|
* Add a BackupProtocolLocal2 convenience class.Chris Wilson2014-02-07
| | | | | Adds a nicer constructor and more helpful cleanup on QueryFinished() to the auto-generated BackupProtocolLocal.
* Add ReceiveStream to protocol callable base class.Chris Wilson2014-02-07
| | | | | So we can call it on either a Client or a Local protocol object, without having to know which it is, or cast it.
* Split bbstoreaccounts commands out into a separate class.Chris Wilson2014-02-07
| | | | | Allows us to call them from tests without shelling out, making debugging easier.
* Show more details when bbackupquery command parsing failsChris Wilson2014-02-07
|
* Add a test that Used block counts match expected values.Chris Wilson2013-10-22
|
* Files are allowed to be both Old and Deleted.Chris Wilson2013-10-02
| | | | Count them as Deleted, not as Old.
* Fix test fallout from SendStream ptr to auto_ptr change.Chris Wilson2013-09-30
| | | | | You can only pass a std::auto_ptr<IOStream> to SendStream now. Nothing else will do for Clang. But you can cast a std::auto_ptr<subclass>.
* Fix getopt header confusion.Chris Wilson2013-09-30
| | | | | | | | Our copy of getopt.h in lib/win32 was beating the system getopt.h in the search path, and providing different definitions, which clang picked up. Renamed our getopt.h to bsd_getopt.h, and added a box_getopt.h to decide whether to include this one instead of the system getopt.h.
* Clang complains that "enabled" is not initialised.Chris Wilson2013-09-28
| | | | | | | It doesn't know that we call a function that exits the program prematurely. In any case, this patch stops it from complaining.
* Clang complains that numDelObj is not initialised.Chris Wilson2013-09-28
| | | | | | | I don't think this has any effect in practice, but this patch ensures that it is initialised anyway.
* mSubType is unsigned, so clang complains that it can't be less than zero.Chris Wilson2013-09-28
|
* Add systemd initscript/configuration by Daniel Tihelka <dtihelka@gmail.com>Chris Wilson2013-09-28
|
* Repair damaged Box RAID objects and non-transformed .rfw files.Chris Wilson2013-09-20
|
* Add a comment about removing one RaidFileWrite constructor.Chris Wilson2013-09-20
|
* Ensure that all errors that increment mNumberErrorsFound are reported as ↵Chris Wilson2013-09-19
| | | | | | | BOX_ERROR. Remove debugging code for Sune Molgaard's issue with non-existent files.
* Add calloc() support to memory leak finder.Chris Wilson2013-09-19
|
* Report everything that increases mNumberErrorsFound as a BOX_ERROR.Chris Wilson2013-09-19
|
* Add missing definition of CheckDirectory, fix CheckDirectoryEntry prototype.Chris Wilson2013-09-19
|
* Fix misleading exception thrown.Chris Wilson2013-09-19
|
* Repeatedly "fix" directories until all errors are cleared.Chris Wilson2013-09-19
| | | | | | | Fixes some cases where a directory might refer to an object that doesn't exist, which is removed from the directory, but an object that depends on it (a patch) isn't removed, and requires a subsequent recheck.
* Fix missing include, thanks Arnaud.Chris Wilson2013-09-02
|
* Set process title on Windows.Chris Wilson2013-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 Wilson2013-08-22
|
* Improve debugging messages after repairing a directory.Chris Wilson2013-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 Wilson2013-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 Wilson2013-08-22
| | | | Makes the source code more readable.
* Improve error messages from BackupCommands.Chris Wilson2013-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 Wilson2013-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 Wilson2013-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 Wilson2013-08-21
|
* Add support for the -W option to test runner executable.Chris Wilson2013-08-21
|
* Allow getting the name of the current phase of a BackupStoreContext.Chris Wilson2013-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 Wilson2013-08-21
|
* Add ability to generate memory usage reports while running.Chris Wilson2013-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 Wilson2013-02-13
|
* Link testbbackupd with bbackupquery object files, so that we can useChris Wilson2012-11-27
| | | | | BackupQueries directly for debugging compare failures.
* Fix failure to list files properly when not using a console on Win32Chris Wilson2012-11-27
| | | | | (e.g. from Cygwin command prompt).
* Allow getting the standard Console and Syslog loggers. Add a Guard classChris Wilson2012-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 Wilson2012-11-27
|
* Log reason for housekeeping, or not (timer status).Chris Wilson2012-11-27
|
* Fix testbackupstore: don't keep using a reference to a protocol objectChris Wilson2012-11-18
| | | | | that's been disposed (Windows only).
* Fix random failures of bbackupd test by locking the account before makingChris Wilson2012-11-18
| | | | | changes to it.
* Cosmetic improvements to bbstored log message tagging.Chris Wilson2012-11-18
|
* Finish incomplete checkin [3156].Chris Wilson2012-11-18
|