]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
synclient: print mount error
authorSage Weil <sage@newdream.net>
Thu, 11 Mar 2010 17:40:09 +0000 (09:40 -0800)
committerSage Weil <sage@newdream.net>
Fri, 12 Mar 2010 17:02:43 +0000 (09:02 -0800)
src/client/SyntheticClient.cc

index 8b5e8b535d439146416adeeba27a3ebe3069b4e7..53b8a0c08c69f7a40d8e0729bed7d692322439e1 100644 (file)
@@ -306,8 +306,10 @@ int SyntheticClient::run()
   dout(15) << "initing" << dendl;
   client->init();
   dout(15) << "mounting" << dendl;
-  if (client->mount() < 0) {
-    dout(0) << "failed to mount" << dendl;
+  int err = client->mount();
+  if (err < 0) {
+    char buf[80];
+    dout(0) << "failed to mount: " << strerror_r(-err, buf, sizeof(buf)) << dendl;
     client->shutdown();
     return -1;
   }