summaryrefslogtreecommitdiff
path: root/lib/backupstore
Commit message (Collapse)AuthorAge
...
* Fix missing #include for MemBlockStream.hChris Wilson2012-11-08
|
* Make CreateForRegeneration save the AccountEnabled flag and any extra dataChris Wilson2012-11-08
| | | | | copied from the original info file.
* Remove commented-out method copied from BackupStoreInfo and not used.Chris Wilson2012-11-07
|
* Replace magic number 1000 with MILLI_SEC_IN_SEC when initialising timers.Chris Wilson2012-11-07
| | | | | Add the start of ExperimentalSnapshotMode support.
* Refuse login to disabled accounts.Chris Wilson2012-10-22
|
* Keep and resave any extra data present at the end of a BackupStoreInfoChris Wilson2012-10-22
| | | | | | | | | version 2 (Archive) file, for forwards compatibility with future extensions to the file format. Add a flag for whether an account in enabled or not in the new v2 file format, and if it's not present, default to true.
* Wrap line for readability.Chris Wilson2012-10-22
|
* Add housekeep command to bbstoreaccounts to run housekeeping right now.Chris Wilson2012-06-29
|
* Revert r3106 as it causes compile failures not seen locally.Chris Wilson2012-05-04
|
* Move private variables out of hidden namespace to help debugging.Chris Wilson2012-04-28
|
* Cosmetic improvements in comments.Chris Wilson2012-04-28
|
* Add experimental "TCP Nice" mode, disabled by default.Chris Wilson2012-02-12
|
* Rename the BackupStoreDirectory::AddEntry's AttributesModTime parameter to ↵Chris Wilson2012-01-22
| | | | AttributesHash to avoid misleading the reader.
* Allow constructing a BackupClientFileAttributes from a struct EMU_STAT.Chris Wilson2012-01-22
|
* Add remote host and port to post-login login message, requested by Pete Jalajas.Chris Wilson2011-12-13
|
* Log the account name with connections, disconnections and statistics, ↵Chris Wilson2011-12-12
| | | | requested by Pete Jalajas.
* Use a macro to verify block count adjustments to reduce duplicate code.Chris Wilson2011-11-01
|
* Fix spelling error in AddUnattachedObject method name.Chris Wilson2011-11-01
|
* Allow getting the number of errors found by a store checker object.Chris Wilson2011-11-01
|
* Remove debugging code.Chris Wilson2011-11-01
|
* Adjust for platforms where sizeof(long) < sizeof(void *), apparentlyChris Wilson2011-10-23
| | | | | | including Visual Studio 64-bit where sizeof(long) == 4. I don't fully understand the code, so I hope this adjustment is correct!
* Add missing include of backup protocol.Chris Wilson2011-08-28
|
* 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.