]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: print a bit more debug info about compat problems
authorSage Weil <sage@newdream.net>
Thu, 22 Apr 2010 21:09:51 +0000 (14:09 -0700)
committerSage Weil <sage@newdream.net>
Thu, 22 Apr 2010 22:12:58 +0000 (15:12 -0700)
src/osd/OSD.cc

index 5f7eff5ee4b43984ee82e16283b80052b84520b4..cb317ef3283f5712e5bc9744e5ac98a61af01c6a 100644 (file)
@@ -700,18 +700,19 @@ int OSD::read_superblock()
   ::decode(superblock, p);
 
   dout(10) << "read_superblock " << superblock << dendl;
-
   if (osd_compat.compare(superblock.compat_features) < 0) {
-    dout(5) << "The disk uses features unsupported by the executable." << dendl;
+    dout(0) << "The disk uses features unsupported by the executable." << dendl;
+    dout(0) << " ondisk features " << superblock.compat_features << dendl;
+    dout(0) << " daemon features " << osd_compat << dendl;
+
     if (osd_compat.writeable(superblock.compat_features)) {
-      dout(5) << "it is still writeable, though. Missing features:" << dendl;
+      dout(0) << "it is still writeable, though. Missing features:" << dendl;
       CompatSet diff = osd_compat.unsupported(superblock.compat_features);
-      //NEEDS_ITER
+      return -EOPNOTSUPP;
     }
     else {
       dout(0) << "Cannot write to disk! Missing features:" << dendl;
       CompatSet diff = osd_compat.unsupported(superblock.compat_features);
-      //NEEDS_ITER
       return -EOPNOTSUPP;
     }
   }