summaryrefslogtreecommitdiff
path: root/lib/backupstore/BackupStoreCheck2.cpp
Commit message (Collapse)AuthorAge
* Replace sprintf() with snprintf(), fixes compile warnings on OpenBSD.Chris Wilson2014-12-22
| | | | | And compile errors on recent MinGW.
* Repair the refcount database while checking accounts for errors.Chris Wilson2014-10-31
| | | | | | | Normally this will be done by housekeeping anyway, so it's not that useful, but it's good to check for it in tests, especially when testing BackupStoreCheck's ability to repair bad things that happened to the store when they involve references.
* Whitespace, comment and readability fixesChris Wilson2014-10-31
|
* Add a comment explaining why we can't move detached dirs back into place.Chris Wilson2014-04-29
|
* Whitespace, comments and log messages cleanups.Chris Wilson2014-03-02
|
* Rename BackupStoreInfo variable NumFiles to NumCurrentFiles.Chris Wilson2014-02-09
| | | | | Will hopefully prevent future confusion about the meaning of this info variable.
* Fix accounting in bbstoreaccounts check.Chris Wilson2014-02-09
| | | | | | Fix accounting for current, old and deleted files and blocks. Previously there was confusion over the meaning of NumFiles, now it's defined to mean the number of current files (neither old nor deleted), similar to BlocksInCurrentFiles.
* 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.
* 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.
* 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.
* Fix spelling error in AddUnattachedObject method name.Chris Wilson2011-11-01
|
* Debugging for Sune Molgaard's issue with non-existent files beingChris Wilson2011-02-23
| | | | | detected as unattached and crashing later in CheckUnattachedObjects().
* 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.
* 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.
* 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.
* Convert most printf() and fprintf() calls to use logging frameworkChris Wilson2007-08-02
| | | | | instead. (refs #3)
* Fixed typo.Chris Wilson2006-11-13
|
* Merged martin/autoconf at r35 to trunkMartin Ebourne2005-12-07
|
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14