]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: drop optional 'create [category]' arg
authorSage Weil <sage@redhat.com>
Thu, 30 Oct 2014 22:43:31 +0000 (15:43 -0700)
committerSage Weil <sage@redhat.com>
Mon, 1 Dec 2014 17:37:56 +0000 (09:37 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
PendingReleaseNotes
src/tools/rados/rados.cc

index 289743e2ec24f3669b117697474e6e1eefb5ada6..87b7f585ef947bd3242633661dee752ab33703eb 100644 (file)
@@ -35,3 +35,6 @@ v0.90
 * The output for 'rados df' has changed.  The 'category' level has been
   eliminated, so there is now a single stat object per pool.  The structure of
   the JSON output is different, and the plaintext output has one less column.
+
+* The 'rados create <objectname> [category]' optional category argument is no
+  longer supported or recognized.
index 144af4047238dccd82ec3838a5d050eaa331fb1a..eb3ce55de98ad5f8f7c80cc78be027b62a00e3ac 100644 (file)
@@ -71,7 +71,7 @@ void usage(ostream& out)
 "   get <obj-name> [outfile]         fetch object\n"
 "   put <obj-name> [infile]          write object\n"
 "   truncate <obj-name> length       truncate object\n"
-"   create <obj-name> [category]     create object\n"
+"   create <obj-name>                create object\n"
 "   rm <obj-name> ...                remove object(s)\n"
 "   cp <obj-name> [target-obj]       copy object\n"
 "   clonedata <src-obj> <dst-obj>    clone object data\n"
@@ -1213,7 +1213,6 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
   const char *snapname = NULL;
   snap_t snapid = CEPH_NOSNAP;
   std::map<std::string, std::string>::const_iterator i;
-  std::string category;
 
   uint64_t min_obj_len = 0;
   uint64_t max_obj_len = 0;
@@ -1262,10 +1261,6 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
   if (i != opts.end()) {
     target_nspace = i->second;
   }
-  i = opts.find("category");
-  if (i != opts.end()) {
-    category = i->second;
-  }
   i = opts.find("concurrent-ios");
   if (i != opts.end()) {
     if (rados_sistrtoll(i, &concurrent_ios)) {
@@ -2067,12 +2062,7 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
     if (!pool_name || nargs.size() < 2)
       usage_exit();
     string oid(nargs[1]);
-    if (nargs.size() > 2) {
-      string category(nargs[2]);
-      ret = io_ctx.create(oid, true, category);
-    } else {
-      ret = io_ctx.create(oid, true);
-    }
+    ret = io_ctx.create(oid, true);
     if (ret < 0) {
       cerr << "error creating " << pool_name << "/" << oid << ": " << cpp_strerror(ret) << std::endl;
       goto out;
@@ -2709,8 +2699,6 @@ int main(int argc, const char **argv)
       opts["target_locator"] = val;
     } else if (ceph_argparse_witharg(args, i, &val, "--target-nspace" , (char *)NULL)) {
       opts["target_nspace"] = val;
-    } else if (ceph_argparse_witharg(args, i, &val, "--category", (char*)NULL)) {
-      opts["category"] = val;
     } else if (ceph_argparse_witharg(args, i, &val, "-t", "--concurrent-ios", (char*)NULL)) {
       opts["concurrent-ios"] = val;
     } else if (ceph_argparse_witharg(args, i, &val, "--block-size", (char*)NULL)) {