]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cosd: dump error when failed to mount, fix logs
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 30 Mar 2009 20:01:22 +0000 (13:01 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 30 Mar 2009 20:01:22 +0000 (13:01 -0700)
src/cosd.cc

index 2551a5803ed5fd31435a82882e47d8875618547a..21f423f51efd27fca4e13f2b06ceee9f2d7ce0fc 100644 (file)
@@ -76,6 +76,8 @@ int main(int argc, const char **argv)
     usage();
   }
 
+  _dout_create_courtesy_output_symlink("osd", whoami);
+
   // get monmap
   MonMap monmap;
   MonClient mc;
@@ -97,7 +99,10 @@ int main(int argc, const char **argv)
   int w;
   int r = OSD::peek_super(g_conf.osd_data, magic, fsid, w);
   if (r < 0) {
-    cerr << "unable to open OSD superblock on " << g_conf.osd_data << ": " << strerror(-r) << std::endl;
+    cerr << " ** ERROR: unable to open OSD superblock on " << g_conf.osd_data << ": " << strerror(-r) << std::endl;
+    if (r == -ENOTSUP)
+      cerr << " **        please verify that underlying storage supports xattrs" << std::endl;
+    derr(0) << "unable to open OSD superblock on " << g_conf.osd_data << ": " << strerror(-r) << dendl;
     exit(1);
   }
   if (w != whoami) {
@@ -113,9 +118,6 @@ int main(int argc, const char **argv)
     exit(1);
   }
 
-  _dout_create_courtesy_output_symlink("osd", whoami);
-
-
   // start up network
   rank.bind();