mirror of
https://github.com/ceph/ceph
synced 2025-01-18 17:12:29 +00:00
rados: Tell that pool removal failed. Not that it doesn't exist.
If removing a pool fails it could have various reasons. The pool might be protected from removal (nodelete flag).
This commit is contained in:
parent
3f50b5e19e
commit
5c9e9da879
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user