summaryrefslogtreecommitdiff
path: root/lib/backupstore
Commit message (Collapse)AuthorAge
* Mark the comparator object as const callabledSimon Chopin2022-04-07
| | | | | This fixes the build when using C++17 Gbp-Pq: Name c++17.diff
* New upstream version 0.13~~git20200326.g8e8b63cReinhard Tartler2020-05-10
|
* New upstream version 0.13~~git20190527.g039c4a1Reinhard Tartler2019-05-28
|
* Remove unused #includes.Chris Wilson2016-09-19
|
* Remove unused member variable.Chris Wilson2016-09-11
|
* Update platform feature detection to work with CMake.Chris Wilson2016-09-03
| | | | | | | Rewrite some macros in forms that can be parsed by our parser written in CMake language (fake m4 with regexps). Fix incorrect conditional includes and incorrect #if/#ifdef assumptions.
* Fix case of filenames of "text" files used to generate protocols and docs.Chris Wilson2016-08-28
|
* Check that DoHousekeeping() actually returns true.Chris Wilson2015-12-27
|
* Whitespace cleanup.Chris Wilson2015-12-27
|
* Catch exceptions during destruction of BackupStoreRefCountDatabase as well.Chris Wilson2015-12-24
| | | | | Like HousekeepStoreAccount and BackupStoreCheck, throwing an exception during the destructor will terminate the application in an "unusual way".
* Catch exceptions during destruction of BackupStoreCheck as well.Chris Wilson2015-12-24
| | | | | Like HousekeepStoreAccount, throwing an exception during the destructor will terminate the application in an "unusual way".
* Catch and log exceptions in the HousekeepStoreAccount destructor.Chris Wilson2015-12-22
| | | | | | Destructors aren't supposed to throw exceptions, and they can be called while cleaning up from a previous exception, which will terminate the application, so just log the error and carry on.
* Fix account deletion on Windows.Chris Wilson2015-12-17
| | | | Use the rmdir command instead of rm -rf.
* Fix another use of a non-standard BSD variable.Chris Wilson2015-12-09
|
* Merge Arnaud Grandville's Windows fixes.Chris Wilson2015-12-09
|\ | | | | | | Merge branch 'master' of https://github.com/agrandville/boxbackup into appveyor
| * add specific define to allow the use of std::min and sd::max from windowsAG2015-10-26
| |
| * min & max are not from std namespaceAG2015-10-26
| | | | | | | | | | | | u_int8_t is unsigned char strings.h file is missing errors generated by deprecated functions are now hidden (C4996 warning)
| * Merge branch 'master' into fix_arm_struct_packingChris Wilson2015-09-21
| |\
| | * Remove all timing dependency from test_ssl_keepalives().Chris Wilson2015-09-20
| | | | | | | | | | | | | | | | | | | | | | | | This test has always been fragile, and usually fails on Travis for reasons unknown, so replace the log parsing and intercepts with simple mocking code. This doesn't cover 100% of what the old test did, including diff timer aborts and the number of blocks used by the uploaded files, but it should be completely robust.
| * | Add a test for reading and writing BackupStoreDirectory binary data.Chris Wilson2015-09-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | See discussion of incompatible struct packing on ARM processors: http://lists.boxbackup.org/pipermail/boxbackup/2010-November/005818.html http://lists.boxbackup.org/pipermail/boxbackup/2011-February/005978.html Thanks to Leif Linderstam for identifying the problem and proposing a solution. This is just a test for the problem, not a fix in itself.
| * | Comments and whitespace fixesChris Wilson2015-09-19
| |/
* | Remove non-standard BSD u_int* types.Chris Wilson2015-12-08
|/ | | | | | | MSVC doesn't like them, and they're not necessary now that we have stdint.h. Remove some compatibility typedefs from BoxPlatform.h and emu.h which are not needed any longer either.
* Fix check for existing BackupStoreInfo file on S3 storesChris Wilson2015-08-29
|
* Whitespace, import order and comment fixesChris Wilson2015-08-29
|
* Allow verifying a BackupStoreFile without closing underlying streamChris Wilson2015-08-29
|
* Add missing header include.Chris Wilson2015-08-23
| | | | | Fixes compilation on Windows.
* Whitespace, layout and comment cleanups.Chris Wilson2015-08-15
|
* Improve exception handling on backup store side.Chris Wilson2015-08-15
| | | | | | | | | | | | | | | | Add a new exception code to represent an object being completely missing (not found on the store at all), separate from not being found in a particular directory. Improve mapping of server-side exceptions to protocol error messages returned to the client. Add handling for missing exceptions, such as BackupStoreException::PatchChainInfoBadInDirectory, and the new BackupStoreException::ObjectDoesNotExist. Fix mapping for BackupStoreException::CouldNotFindEntryInDirectory to make it distinguistable from BackupStoreException::ObjectDoesNotExist.
* Add a BackupStoreFile encoding streaming verifierChris Wilson2015-08-07
|
* Whitespace cleanupChris Wilson2015-08-07
|
* Improve error message when TEST_PROTOCOL_ERROR_OR() fails.Chris Wilson2015-08-06
| | | | | | The protocol command didn't succeed, it just returned a result with an unexpected type, so make the failure message reflect that and give details of the response actually received, to help with debugging.
* Fix StartClient() to store new pid correctlyChris Wilson2015-08-06
|
* Compile fixChris Wilson2015-07-31
|
* Add S3Store account creation.Chris Wilson2015-07-31
|
* Refactor to allow sharing code for starting and stopping daemons in tests.Chris Wilson2015-07-31
| | | | | The new StartDaemon() and StopDaemon() in ServerControl.cpp/h are generic, and used by StartClient() and StartServer() in StoreTestUtils.cpp/h.
* Refactor BackupStoreInfo to allow creating them without RaidFiles.Chris Wilson2015-07-31
| | | | | They can now be created using a constructor, and written to any IOStream. Needed for writing them to an S3Store.
* Remove duplicate declaration of test functions.Chris Wilson2015-07-25
|
* Refactor BackupStoreInfo to allow loading from any IOStream.Chris Wilson2015-07-19
|
* Major test refactor to support test suites.Chris Wilson2015-07-01
| | | | | | | Refactor all common code from testbbackupd and testbackupstore to allow other test suites to contain multiple tests and execute selected tests more easily. Report all test results within a suite in a standard, easy to read summary.
* Refactor store account control to allow other store types.Chris Wilson2015-06-28
| | | | | Move common code into a base class, leaving bbstored-specific code. Add skeleton of an S3 store type.
* Initialise ModificationTime when uploading complete file.Chris Wilson2015-06-10
|
* Fix test failures on Windows caused by keeping files open too long.Chris Wilson2015-05-16
| | | | | | Once again, the Windows issue of being unable to delete or overwrite an open file causes issues. In this case it's only test failures. We need to be diligent about closing open file handles and protocol sessions in tests.
* Fix missing account lock while checking for errors.Chris Wilson2015-05-06
| | | | | | | | | | | The old assertion, that the write lock file exists before starting checking, was erroneously passing before when no lock was held, because the lockfile was never deleted. Now that we delete it when unlocking the account, this started causing test failures. Changed the way that accounts are checked for errors to use a function that acquires a write lock first, and modified test to disconnect open clients before starting checking the account, to fix it.
* Fix minor test problem caused by not deleting a file between tests.Chris Wilson2015-05-04
|
* Fix tests failing because they can't delete the lock file.Chris Wilson2015-05-04
| | | | Deleting the account deletes the lockfile, so unlocking fails.
* Add ability to run commands in context with TEST_CHECK_THROWS_AND_OR.Chris Wilson2015-04-15
| | | | | Allows the exception message to be captured before it goes out of scope.
* Fix test failures caused by failure to commit the temporary refcount DB.Chris Wilson2015-04-06
| | | | Files need to be closed before renaming over them on Windows.
* Improve error logging in win32 emu library.Chris Wilson2015-04-06
| | | | | | Consistently capture the last Windows error code in the global variable winerrno. Add logging macros that report the Windows error message for this error code.
* Fix crash when compiled in release mode caused by refcount not decrementing.Chris Wilson2015-02-26
| | | | | | The call to decrement the refcount was in an ASSERT macro, so compiled out in release mode.
* Fix test failures caused by using plain stat() instead of emu_stat().Chris Wilson2014-12-26
| | | | | | | On Windows, plain stat() no longer handles slashes in filenames correctly (since upgrading MinGW? Or switching to 64-bit Windows?). We need to use POSIX fstat() for now in RaidFile, but we can still use the emu_stat, and in fact we should, to fix path translation.