From a917ccfce50078bd74d3fb3c22a6ce5d124faaee Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Wed, 27 Jan 2016 10:26:15 +0100 Subject: [PATCH] mon: cleanup set-quota error msg When we send in an unrecognized field for set-quota, specify that the options should be `max_bytes` or `max_objects`. This doesn't affect the ceph-cli as the choices are caught at an earlier stage, however the error message is seen while reaching the cluster via rados api for eg. Signed-off-by: Abhishek Lekshmanan --- src/mon/OSDMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 77e26de70a9..644bb968fdd 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -7354,7 +7354,7 @@ done: string field; cmd_getval(g_ceph_context, cmdmap, "field", field); if (field != "max_objects" && field != "max_bytes") { - ss << "unrecognized field '" << field << "'; max_bytes of max_objects"; + ss << "unrecognized field '" << field << "'; should be 'max_bytes' or 'max_objects'"; err = -EINVAL; goto reply; } -- 2.47.3