summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2015-06-28 19:36:47 +0000
committerChris Wilson <chris+github@qwirx.com>2015-06-28 19:36:47 +0000
commit66e4d036cea1eac39394c9064f50eee5c993926a (patch)
treeec47cc9ad7f593082c50e7ca83d8fa303dfdb1ec /bin
parent0c41e85dbbaccf0ed07c0277d64d37f0af380be2 (diff)
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.
Diffstat (limited to 'bin')
-rw-r--r--bin/bbstoreaccounts/bbstoreaccounts.cpp5
1 files changed, 3 insertions, 2 deletions
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...