summaryrefslogtreecommitdiff
path: root/lib/backupstore
Commit message (Collapse)AuthorAge
* Combine client and server protocols to make way for an offline/local protocol.Chris Wilson2011-08-27
| | | | | Rename ProtocolObject to Message.
* Hopefully fix off-by-4 read of old-style BackupStoreInfo header, thanks to ↵Chris Wilson2011-06-30
| | | | Sune Mølgaard for reporting.
* Fix type aliasing that's strictly speaking incompatible and may actually be ↵Chris Wilson2011-06-22
| | | | | | | skipped by the compiler (according to http://blog.worldofcoding.com/2010/02/solving-gcc-44-strict-aliasing-problems.html).
* Improve error logging for store info and refcount database errors.Chris Wilson2011-06-16
|
* Move remaining parts of BackupStoreFile into lib/backupstore, and fix moduleChris Wilson2011-05-24
| | | | | | dependencies to fail if anything else required by bbstored is still in lib/backupclient instead of lib/backupstore.
* Add a method to BackupStoreFilenameClear to get the clear filename only ifChris Wilson2011-04-26
| | | | | | | | it's available or crypto has been configured to decrypt it. This allows client and server to share the same definition of protocol objects that use Filenames, instead of using BackupStoreFilename on the server and BackupStoreFilenameClear on the client.
* Major refactoring to make lib/backupclient depend on lib/backupstore ratherChris Wilson2011-04-26
| | | | | | | than the other way around. This is needed to allow clients to have all the code that they'd need to implement local backups (using the Local protocol) in subsequent commits.
* Use the reference count database name constant rather than hard-coding it.Chris Wilson2011-04-20
|
* Fix double path separator in new store info filename which causes unlink()Chris Wilson2011-04-08
| | | | | to fail on Windows.
* Fix double path separator in account info filename, prevents its deletionChris Wilson2011-03-27
| | | | | | | on MSVC 2010/emu.cpp:unlink(). A cursory check shows that the separator is always included by MakeAccountRootDir() and this is always used to make the info filename, so this should not break anything.
* Work around lack of unistd.h on MSVC.Chris Wilson2011-03-27
|
* Debugging for Sune Molgaard's issue with non-existent files beingChris Wilson2011-02-23
| | | | | detected as unattached and crashing later in CheckUnattachedObjects().
* Improve messages on failure to load store info.Chris Wilson2011-01-12
|
* Count the root directory when creating a new account.Chris Wilson2010-08-27
|
* Change the store info file format to include an account name and the Chris Wilson2010-08-27
| | | | | | | | number of blocks in current (not old or deleted) files, an often-requested feature since this number is difficult to calculate otherwise, because files may be both old and deleted, thus counted twice.
* Count the number of files and directories in the account during account Chris Wilson2010-08-27
| | | | | | | | | check. Move directory entry checking code into its own method for readability. Reformat long lines for readability.
* Compile fix for [2694].Chris Wilson2010-06-06
|
* Fix compile failure reported by Achim.Chris Wilson2009-08-01
|
* Comment the return value of Chris Wilson2009-07-05
| | | | | BackupStoreRefCountDatabase::RemoveReference.
* Make GetRefCount return a refcount_t rather than an int32_t.Chris Wilson2009-06-28
| | | | | Make refcount_t unsigned and make its definition public.
* Add code for BackupStoreRefCountDatabase.Chris Wilson2009-06-27
| | | | | | | Create a refcount database when creating a new account. Add an easier way to get the account root directory.
* Make BackupStoreAccountDatabase::AddEntry and Chris Wilson2009-06-27
| | | | | BackupStoreAccountDatabase::GetEntry return a copy of the new entry.
* Change type of BackupStoreFilename not to derive from std::string, soChris Wilson2009-03-29
| | | | | | | | it can't accidentally be used as one. Fix use of encrypted filename in deleted file message, thanks to Kenny Millington for reporting.
* Fix tests (hopefully) on Win32 for struct stat ino_t change from 16 toChris Wilson2009-03-21
| | | | | 64 bits.
* Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as Chris Wilson2008-12-30
| | | | | | well (e.g. wxWidgets) and it causes conflicts which are difficult to resolve.
* Formatting fix.Chris Wilson2008-08-06
|
* Remove obsolete BackupStoreCheck::InsertObjectIntoDirectory class,Chris Wilson2008-05-06
| | | | | replaced with BackupStoreDirectoryFixer.
* Fix O(n^2) algorithm to insert lost objects into a directory, which wouldChris Wilson2008-05-06
| | | | | | become very slow with large directories (e.g. 100,000 files unattached) due to repeated reading and writing of the directory.
* Fix typos in comments.Chris Wilson2008-05-04
|
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Replace all remaining use of TRACEx() macros with logging framework.Chris Wilson2008-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 Wilson2008-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.
* Fix wrong comments, thanks to Nestor Arocha Rodriguez.Chris Wilson2007-10-08
|
* Convert most printf() and fprintf() calls to use logging frameworkChris Wilson2007-08-02
| | | | | instead. (refs #3)
* Make Configuration take a std::string filename instead of a char array,Chris Wilson2007-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])
* Allow '/' as a path separator on all platforms, even Win32 (refs #3,Chris Wilson2007-03-25
| | | | | merges [1496])
* Fixed typo.Chris Wilson2006-11-13
|
* Use DIRECTORY_SEPARATOR instead of assuming that it's a forward slashChris Wilson2006-08-31
| | | | | (refs #3)
* Revert to trunkChris Wilson2006-08-31
|
* Use DIRECTORY_SEPARATOR instead of assuming that it's a forward slashChris Wilson2006-08-31
|
* * lib/backupstore/BackupStoreAccounts.cppChris Wilson2006-08-31
| | | | | - Revert to trunk
* * mergeChris Wilson2006-07-27
| | | | | | | - This is my current patch queue. I think that all of these are safe to apply. This is just under half of the pending changes in chris/general (the easy half).
* Fixing up svn:executable properties.Martin Ebourne2005-12-12
| | | | You may need a new checkout to see this.
* Merged martin/autoconf at r35 to trunkMartin Ebourne2005-12-07
|
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14