]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: Tell that pool removal failed. Not that it doesn't exist.
authorWido den Hollander <wido@42on.com>
Tue, 5 May 2015 12:22:43 +0000 (14:22 +0200)
committerWido den Hollander <wido@42on.com>
Tue, 5 May 2015 12:22:43 +0000 (14:22 +0200)
If removing a pool fails it could have various reasons. The pool
might be protected from removal (nodelete flag).

src/tools/rados/rados.cc

index 96dcc52724769a910381976015d66a421633703a..42ffa728f1316b1f35c150e4f81c9963f6d901b0 100644 (file)
@@ -2165,7 +2165,7 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
     if (ret >= 0) {
       cout << "successfully deleted pool " << nargs[1] << std::endl;
     } else { //error
-      cerr << "pool " << nargs[1] << " does not exist" << std::endl;
+      cerr << "pool " << nargs[1] << " could not be removed" << std::endl;
     }
   }
   else if (strcmp(nargs[0], "lssnap") == 0) {