From 019c0522f0cff2cfb310f691e2c5bb984b2765cd Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 11 Mar 2010 09:40:09 -0800 Subject: [PATCH] synclient: print mount error --- src/client/SyntheticClient.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client/SyntheticClient.cc b/src/client/SyntheticClient.cc index 8b5e8b535d439..53b8a0c08c69f 100644 --- a/src/client/SyntheticClient.cc +++ b/src/client/SyntheticClient.cc @@ -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; } -- 2.39.5