summaryrefslogtreecommitdiff
path: root/lib/backupstore
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2010-08-27 09:19:45 +0000
committerChris Wilson <chris+github@qwirx.com>2010-08-27 09:19:45 +0000
commit5274b8081244d9c5b7dd915abe33fd47a1451c7e (patch)
tree28ba00027115a41b333438bcd8b105680179201e /lib/backupstore
parent2323ffec923ac049dd32e8a7ab031602f87e1e9f (diff)
Count the root directory when creating a new account.
Diffstat (limited to 'lib/backupstore')
-rw-r--r--lib/backupstore/BackupStoreAccounts.cpp5
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();