summaryrefslogtreecommitdiff
path: root/lib/backupstore/BackupStoreAccounts.cpp
Commit message (Collapse)AuthorAge
* Fix account deletion on Windows.Chris Wilson2015-12-17
| | | | Use the rmdir command instead of rm -rf.
* 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.
* 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 tests failing because they can't delete the lock file.Chris Wilson2015-05-04
| | | | Deleting the account deletes the lockfile, so unlocking fails.
* Replace sprintf() with snprintf(), fixes compile warnings on OpenBSD.Chris Wilson2014-12-22
| | | | | And compile errors on recent MinGW.
* Whitespace, comments and log messages cleanups.Chris Wilson2014-03-02
|
* Allow read-only account check without taking a write lock on account.Chris Wilson2014-02-27
|
* Fix wrong output of client store marker in bbstoraccounts info.Chris Wilson2014-02-10
|
* Rename BackupStoreInfo variable NumFiles to NumCurrentFiles.Chris Wilson2014-02-09
| | | | | Will hopefully prevent future confusion about the meaning of this info variable.
* Create new refcount database atomically during account check.Chris Wilson2014-02-07
| | | | | | | | | | | Use a temporary refcount db for check instead of an in-memory vector. This avoid the memory usage problems created by using the vector on large accounts, but may require us to improve the efficiency of the refcount database itself to avoid large numbers of small I/O operations. That is very doable now that we're using a class for it. Fix some inconsistencies and mistakes in handling reference counts and info counters during account checks (more to come).
* Revert "Revert "Fix compile error introduced by bbstoreaccounts refactor.""Chris Wilson2014-02-07
| | | | | | This reverts commit b3bc7ad5be2c5b2588793aaa9fbc05e4a1c0aea5. Should not have been applied in SVN (not just yet, anyway).
* 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
|
* 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.
* Add a helper in BackupStoreAccounts to get a write lock on an account.Chris Wilson2012-11-18
| | | | | | Use it in two places to simplify code (not in BackupStoreContext yet, because that wants to communicate with HK process as well).
* Count the root directory when creating a new account.Chris Wilson2010-08-27
|
* 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.
* * Use DIRECTORY_SEPARATOR instead of assuming that it's a forward slashChris Wilson2006-10-12
|
* Fixing up svn:executable properties.Martin Ebourne2005-12-12
| | | | You may need a new checkout to see this.
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14