From 66e4d036cea1eac39394c9064f50eee5c993926a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 28 Jun 2015 19:36:47 +0000 Subject: Refactor store account control to allow other store types. Move common code into a base class, leaving bbstored-specific code. Add skeleton of an S3 store type. --- bin/bbstoreaccounts/bbstoreaccounts.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/bbstoreaccounts/bbstoreaccounts.cpp') diff --git a/bin/bbstoreaccounts/bbstoreaccounts.cpp b/bin/bbstoreaccounts/bbstoreaccounts.cpp index 652b1d5a..f2e3df95 100644 --- a/bin/bbstoreaccounts/bbstoreaccounts.cpp +++ b/bin/bbstoreaccounts/bbstoreaccounts.cpp @@ -177,8 +177,9 @@ int main(int argc, const char *argv[]) } // Decode limits - softlimit = control.SizeStringToBlocks(argv[3], discnum); - hardlimit = control.SizeStringToBlocks(argv[4], discnum); + int blocksize = control.BlockSizeOfDiscSet(discnum); + softlimit = control.SizeStringToBlocks(argv[3], blocksize); + hardlimit = control.SizeStringToBlocks(argv[4], blocksize); control.CheckSoftHardLimits(softlimit, hardlimit); // Create the account... -- cgit v1.2.3