From patchwork Thu Oct 25 04:54:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jianhong.Yin" X-Patchwork-Id: 10655417 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A780114BD for ; Thu, 25 Oct 2018 04:54:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89FC12B625 for ; Thu, 25 Oct 2018 04:54:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7CC8D2B62B; Thu, 25 Oct 2018 04:54:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DA142B625 for ; Thu, 25 Oct 2018 04:54:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726465AbeJYNZM (ORCPT ); Thu, 25 Oct 2018 09:25:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45828 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbeJYNZM (ORCPT ); Thu, 25 Oct 2018 09:25:12 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 202591E2CC; Thu, 25 Oct 2018 04:54:12 +0000 (UTC) Received: from dhcp-12-115.nay.redhat.com (dhcp-12-115.nay.redhat.com [10.66.12.115]) by smtp.corp.redhat.com (Postfix) with ESMTP id B5C9A19744; Thu, 25 Oct 2018 04:54:10 +0000 (UTC) From: "Jianhong.Yin" To: steved@redhat.com Cc: linux-nfs@vger.kernel.org, "Jianhong.Yin" Subject: [PATCH] [nfs-utils] mount: improve error msg when mount fail wirh EBUSY Date: Thu, 25 Oct 2018 12:54:00 +0800 Message-Id: <20181025045400.24997-1-yin-jianhong@163.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 25 Oct 2018 04:54:12 +0000 (UTC) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP EBUSY can happen when mounting a filesystem that is already mounted or when the context= are different when using the -o sharecache so update the error message from to: - %mountpoint% is busy or already mounted + %mountpoint% is busy or already mounted or sharecache fail Signed-off-by: Jianhong Yin --- utils/mount/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mount/error.c b/utils/mount/error.c index c9797fc..dfe5c7d 100644 --- a/utils/mount/error.c +++ b/utils/mount/error.c @@ -223,7 +223,7 @@ void mount_error(const char *spec, const char *mount_point, int error) progname, mount_point); break; case EBUSY: - nfs_error(_("%s: %s is busy or already mounted"), + nfs_error(_("%s: %s is busy or already mounted or sharecache fail"), progname, mount_point); break; case ENOENT: