diff options
author | Chris Wilson <chris+github@qwirx.com> | 2010-08-27 09:19:45 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2010-08-27 09:19:45 +0000 |
commit | 5274b8081244d9c5b7dd915abe33fd47a1451c7e (patch) | |
tree | 28ba00027115a41b333438bcd8b105680179201e /lib | |
parent | 2323ffec923ac049dd32e8a7ab031602f87e1e9f (diff) |
Count the root directory when creating a new account.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/backupstore/BackupStoreAccounts.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/backupstore/BackupStoreAccounts.cpp b/lib/backupstore/BackupStoreAccounts.cpp index 5c7e4d38..b7ef13ab 100644 --- a/lib/backupstore/BackupStoreAccounts.cpp +++ b/lib/backupstore/BackupStoreAccounts.cpp @@ -55,8 +55,8 @@ BackupStoreAccounts::~BackupStoreAccounts() // Function // Name: BackupStoreAccounts::Create(int32_t, int, int64_t, int64_t, const std::string &) // Purpose: Create a new account on the specified disc set. -// If rAsUsername is not empty, then the account information will be written under the -// username specified. +// If rAsUsername is not empty, then the account information will be written under the +// username specified. // Created: 2003/08/21 // // -------------------------------------------------------------------------- @@ -102,6 +102,7 @@ void BackupStoreAccounts::Create(int32_t ID, int DiscSet, int64_t SizeSoftLimit, std::auto_ptr<BackupStoreInfo> info(BackupStoreInfo::Load(ID, dirName, DiscSet, false /* ReadWrite */)); info->ChangeBlocksUsed(rootDirSize); info->ChangeBlocksInDirectories(rootDirSize); + info->AdjustNumDirectories(1); // Save it back info->Save(); |