]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include/rados: nautilus is next 16993/head
authorSage Weil <sage@redhat.com>
Fri, 11 Aug 2017 16:14:51 +0000 (12:14 -0400)
committerSage Weil <sage@redhat.com>
Fri, 11 Aug 2017 16:14:59 +0000 (12:14 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/ceph_strings.cc
src/include/rados.h

index ac1e8fd6473ec40b12c70a3e77e6dcb816ade16e..df0b973474a0254eb181f9d4540f8bd66229c35e 100644 (file)
@@ -89,6 +89,8 @@ const char *ceph_release_name(int r)
                return "luminous";
        case CEPH_RELEASE_MIMIC:
                return "mimic";
+       case CEPH_RELEASE_NAUTILUS:
+               return "nautilus";
        default:
                return "unknown";
        }
@@ -99,6 +101,9 @@ int ceph_release_from_name(const char *s)
        if (!s) {
                return -1;
        }
+       if (strcmp(s, "nautilus") == 0) {
+               return CEPH_RELEASE_NAUTILUS;
+       }
        if (strcmp(s, "mimic") == 0) {
                return CEPH_RELEASE_MIMIC;
        }
index 0a242b72b1520392ec749ddd634ef6a358e758b8..d8bce989172a472fc8b39f10aab38b8301d9a329 100644 (file)
@@ -183,7 +183,8 @@ extern const char *ceph_osd_state_name(int s);
 #define CEPH_RELEASE_KRAKEN     11
 #define CEPH_RELEASE_LUMINOUS   12
 #define CEPH_RELEASE_MIMIC      13
-#define CEPH_RELEASE_MAX        14  /* highest + 1 */
+#define CEPH_RELEASE_NAUTILUS   14
+#define CEPH_RELEASE_MAX        15  /* highest + 1 */
 
 extern const char *ceph_release_name(int r);
 extern int ceph_release_from_name(const char *s);