From: John Spray Date: Fri, 14 Mar 2014 19:55:51 +0000 (+0000) Subject: mds: Fix remotebit::dump for less common types X-Git-Tag: v0.79~135^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1480%2Fhead;p=ceph.git mds: Fix remotebit::dump for less common types This was hitting an assertion when used on anything other than a regular/symlink/dir. Now covers all types. Signed-off-by: John Spray --- diff --git a/src/mds/journal.cc b/src/mds/journal.cc index f818d7c410a8..8209d1d4261a 100644 --- a/src/mds/journal.cc +++ b/src/mds/journal.cc @@ -603,6 +603,14 @@ void EMetaBlob::remotebit::dump(Formatter *f) const type_string = "symlink"; break; case S_IFDIR: type_string = "directory"; break; + case S_IFIFO: + type_string = "fifo"; break; + case S_IFCHR: + type_string = "chr"; break; + case S_IFBLK: + type_string = "blk"; break; + case S_IFSOCK: + type_string = "sock"; break; default: assert (0 == "unknown d_type!"); }