From patchwork Sat Dec 7 19:00:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikhail Campos Guadamuz X-Patchwork-Id: 3304901 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 71B609F373 for ; Sat, 7 Dec 2013 11:01:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A307B203C4 for ; Sat, 7 Dec 2013 11:01:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B61A8203A7 for ; Sat, 7 Dec 2013 11:01:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754890Ab3LGLBt (ORCPT ); Sat, 7 Dec 2013 06:01:49 -0500 Received: from mail-ee0-f49.google.com ([74.125.83.49]:37331 "EHLO mail-ee0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754878Ab3LGLBs (ORCPT ); Sat, 7 Dec 2013 06:01:48 -0500 Received: by mail-ee0-f49.google.com with SMTP id c41so710486eek.8 for ; Sat, 07 Dec 2013 03:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DxwmbTkPmtJh4q+9NeL2sWLDF2zBjyiEqN49chYR/Tc=; b=QNCIwVv9UjOqbJOXSW3/1+cWu13MSEHDSGgvvjxuSDkp2iq44NSgCSe+l5jKvO2aTP Lka3AEPn2ZizmPDCT+govacofoAX3aUyX8PEXMIrjbvLhkeetO3HM57nvddj3ATxfrDJ 6aiVbvvIjIxrKmN/tdYXoYKi7BXhpJb470wMm4ZFMH2WjuhDkmc8ZqklhB/4w2iZwQWa /TrrzsUg8tRUouMNGid9UN2OZfCB+Ief2HeUBBJX+IML7UcRwJJN1peDqRTN/onm5U0t ZBcmtgzaKK9StdFf5eOSa98cxA7Yn0nXbE+L3xjsGna5mtsebld1EXjZY1oP28Fg27hR uF9w== X-Received: by 10.14.127.2 with SMTP id c2mr80302eei.113.1386414107932; Sat, 07 Dec 2013 03:01:47 -0800 (PST) Received: from localhost.localdomain ([178.125.40.126]) by mx.google.com with ESMTPSA id j46sm5274654eew.18.2013.12.07.03.01.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Dec 2013 03:01:47 -0800 (PST) From: Mikhail Campos Guadamuz To: ceph-devel@vger.kernel.org Cc: Mikhail Campos Guadamuz Subject: [PATCH 2/2] No mds mount error print Date: Sat, 7 Dec 2013 14:00:34 -0500 Message-Id: <1386442834-4372-1-git-send-email-plageat90@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1b8c4b9c49deb956e9d065b0677bfeaf17c968d2.1386442053.git.plageat90@gmail.com> References: <1b8c4b9c49deb956e9d065b0677bfeaf17c968d2.1386442053.git.plageat90@gmail.com> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For http://tracker.ceph.com/issues/4386 We can handle ECOMM error returning by ceph kernel client for printing understandable message about missing active MDS state Signed-off-by: Mikhail Campos Guadamuz --- src/mount/mount.ceph.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index 5bbedd0..3ade629 100755 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -358,6 +358,9 @@ int main(int argc, char *argv[]) case ENODEV: printf("mount error: ceph filesystem not supported by the system\n"); break; + case ECOMM: + printf("mount error: can't find active mds\n"); + break; default: printf("mount error %d = %s\n",errno,strerror(errno)); }