]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: Fix remotebit::dump for less common types 1480/head
authorJohn Spray <john.spray@inktank.com>
Fri, 14 Mar 2014 19:55:51 +0000 (19:55 +0000)
committerJohn Spray <john.spray@inktank.com>
Mon, 17 Mar 2014 14:28:51 +0000 (14:28 +0000)
This was hitting an assertion when used on anything
other than a regular/symlink/dir.  Now covers
all types.

Signed-off-by: John Spray <john.spray@inktank.com>
src/mds/journal.cc

index f818d7c410a89181332a9d11df6a7add99bcab77..8209d1d4261a981136eb0c1a0779bf6b645af1f6 100644 (file)
@@ -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!");
   }