From: Sangdi Xu Date: Thu, 17 Dec 2015 09:30:12 +0000 (+0800) Subject: crush: fix the default type 0 name if it's not specified when decompiled X-Git-Tag: v10.0.3~162^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=42692630aed3db17df66684c74347e09d8ae968a;p=ceph.git crush: fix the default type 0 name if it's not specified when decompiled Change the type 0 name from "device" to "osd", just to make it consistent Signed-off-by: Sangdi Xu --- diff --git a/src/crush/CrushCompiler.cc b/src/crush/CrushCompiler.cc index b4c2e88264d..ff6da860bb0 100644 --- a/src/crush/CrushCompiler.cc +++ b/src/crush/CrushCompiler.cc @@ -213,7 +213,7 @@ int CrushCompiler::decompile(ostream &out) for (int i=0; n; i++) { const char *name = crush.get_type_name(i); if (!name) { - if (i == 0) out << "type 0 device\n"; + if (i == 0) out << "type 0 osd\n"; continue; } n--;