cerr << " --bucket specified bucket for quota command\n";
cerr << " --max-objects specify max objects\n";
cerr << " --max-size specify max size (in bytes)\n";
+ cerr << " --quota-scope scope of quota (bucket, user)\n";
cerr << "\n";
generic_client_usage();
}
}
if (!bucket_name.empty()) {
+ if (!quota_scope.empty() && quota_scope != "bucket") {
+ cerr << "ERROR: invalid quota scope specification." << std::endl;
+ return EINVAL;
+ }
set_bucket_quota(store, opt_cmd, bucket_name, max_size, max_objects);
} else if (!user_id.empty()) {
if (quota_scope != "bucket") {
--bucket specified bucket for quota command
--max-objects specify max objects
--max-size specify max size (in bytes)
+ --quota-scope scope of quota (bucket, user)
--conf/-c Read configuration from the given configuration file
--id/-i set ID portion of my name