[Box Backup-commit] COMMIT r2703 - box/trunk/lib/backupstore
subversion at boxbackup.org
subversion at boxbackup.org
Fri Aug 27 10:19:45 BST 2010
Author: chris
Date: 2010-08-27 10:19:45 +0100 (Fri, 27 Aug 2010)
New Revision: 2703
Modified:
box/trunk/lib/backupstore/BackupStoreAccounts.cpp
Log:
Count the root directory when creating a new account.
Modified: box/trunk/lib/backupstore/BackupStoreAccounts.cpp
===================================================================
--- box/trunk/lib/backupstore/BackupStoreAccounts.cpp 2010-08-27 09:18:57 UTC (rev 2702)
+++ box/trunk/lib/backupstore/BackupStoreAccounts.cpp 2010-08-27 09:19:45 UTC (rev 2703)
@@ -55,8 +55,8 @@
// 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 @@
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();
More information about the Boxbackup-commit
mailing list