From patchwork Tue Jun 7 18:35:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Dickson X-Patchwork-Id: 9162235 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E505560777 for ; Tue, 7 Jun 2016 18:35:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D04DE28326 for ; Tue, 7 Jun 2016 18:35:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C51A728358; Tue, 7 Jun 2016 18:35:09 +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=-6.9 required=2.0 tests=BAYES_00,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 735D128326 for ; Tue, 7 Jun 2016 18:35:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161348AbcFGSfH (ORCPT ); Tue, 7 Jun 2016 14:35:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47820 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161331AbcFGSfH (ORCPT ); Tue, 7 Jun 2016 14:35:07 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C6E5D249 for ; Tue, 7 Jun 2016 18:35:05 +0000 (UTC) Received: from steved.boston.devel.redhat.com (steved.boston.devel.redhat.com [10.19.60.47]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u57IZ5dA025398 for ; Tue, 7 Jun 2016 14:35:05 -0400 From: Steve Dickson To: Linux NFS Mailing list Subject: [PATCH] mount.nfs: added usage output when no arguemnts are given Date: Tue, 7 Jun 2016 14:35:04 -0400 Message-Id: <1465324504-8018-1-git-send-email-steved@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 07 Jun 2016 18:35:05 +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 Signed-off-by: Steve Dickson Acked-by: Freeman Zhang --- utils/mount/mount_libmount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/mount/mount_libmount.c b/utils/mount/mount_libmount.c index fa46d54..1f01f7f 100644 --- a/utils/mount/mount_libmount.c +++ b/utils/mount/mount_libmount.c @@ -208,6 +208,7 @@ static int umount_main(struct libmnt_context *cxt, int argc, char **argv) if (!spec || (*spec != '/' && strchr(spec,':') == NULL)) { nfs_error(_("%s: no mount point provided"), progname); + umount_usage(); return EX_USAGE; } @@ -329,6 +330,7 @@ static int mount_main(struct libmnt_context *cxt, int argc, char **argv) if (!mount_point) { nfs_error(_("%s: no mount point provided"), progname); + mount_usage(); goto err; } if (!spec) {