From patchwork Thu Mar 29 12:06:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 10315309 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 3134B60383 for ; Thu, 29 Mar 2018 12:05:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11F602A1F2 for ; Thu, 29 Mar 2018 12:05:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06A272A234; Thu, 29 Mar 2018 12:05:57 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 A47142A1F2 for ; Thu, 29 Mar 2018 12:05:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752677AbeC2MFy (ORCPT ); Thu, 29 Mar 2018 08:05:54 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:42797 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752548AbeC2MFj (ORCPT ); Thu, 29 Mar 2018 08:05:39 -0400 Received: by mail-wr0-f193.google.com with SMTP id s18so5159597wrg.9; Thu, 29 Mar 2018 05:05:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4U+BUnaSEglH3cgsRuxffIOWalnqxfsgLC+v3aMRyU0=; b=GEBzEFxyPXkGGBfbOrfsrlH0iK5oi9xVy47E+JWDPPnezgAqZRu//a1r3dkQNikQ4K +uAqfgyR1Zm61H4L2MPD+sgcDLiCHHaVDCyI/nNNCHCBz+FPrxZjBirG/w/mE2ay5DHl o0raSRRHsVqo+wum3q4ruHPH2ykLw4iAhiMCt8O1BM7fFru2Cre29ors4AhrW+TVR8eR TQWQT6oQtxypeY8pK0yVCxvl6qocZhnkbVLBXFJN8csaDcHHulYQTGVBXCyRkqVZ3K+4 HAq8zRgVbN2o9qhPbH3gMG8mgScQAvsV+8W/3gCOLMn+JhcpFg23H6t/urAZfNRPw7R7 s62w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4U+BUnaSEglH3cgsRuxffIOWalnqxfsgLC+v3aMRyU0=; b=pmoEEESAFKhoxOdxlAdzNGI1JekD1xjpuSFv3HsPTZk/Ejq17KkBO2vUVOu7Mtn3Pa qZ0uIQIqZzop9ckHdN+0rcq5pPWy4yXQAZiqbBKKG2JAanhHXfef2niwe/7Bytnu4gqK 9FVBhUphfPq9pQIJfwvMvwojaPMNALFl8sCeSEdymZF6iDjLqdJKQnXNhpSbBrEDzPfZ 5WU+sqy8g6in9tXnX0135QhwDUbtfemTt8YEJd7bXAaR94N4OyTdLRJNWuPJ1tqmx8wX 6nMi4kzrkPRQt5O7+fTlPgH2rLeTopv30sVsUAiEG1im9cLqDFpDSop0ZlkXn4Ew9hl4 BoaQ== X-Gm-Message-State: AElRT7FS0yFpD+yVuJGuvjjmAnmuDnbh7sJEaNldZlMPHo1TDW++QM/C EAuNSgk6aoK1Fsz4105AtkMuQQ== X-Google-Smtp-Source: AIpwx49fnUE4jn0CEVuYwjsU2u4vOIdyd0LblAZGQpyKjQ8G7oKFbZY3bqbq1Wzyxzyuf8mKT1m4qQ== X-Received: by 10.223.195.205 with SMTP id d13mr6795199wrg.0.1522325137710; Thu, 29 Mar 2018 05:05:37 -0700 (PDT) Received: from localhost.localdomain ([141.226.13.13]) by smtp.gmail.com with ESMTPSA id s15sm6699694wrg.28.2018.03.29.05.05.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Mar 2018 05:05:37 -0700 (PDT) From: Amir Goldstein To: Eryu Guan Cc: Miklos Szeredi , linux-unionfs@vger.kernel.org, fstests@vger.kernel.org Subject: [PATCH v2 2/5] open_by_handle: make -h (help) a valid option Date: Thu, 29 Mar 2018 15:06:47 +0300 Message-Id: <1522325210-17900-3-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522325210-17900-1-git-send-email-amir73il@gmail.com> References: <1522325210-17900-1-git-send-email-amir73il@gmail.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All this does is suppress the "illegal value" message. Signed-off-by: Amir Goldstein --- src/open_by_handle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/open_by_handle.c b/src/open_by_handle.c index 78f7ef7..7dfb395 100644 --- a/src/open_by_handle.c +++ b/src/open_by_handle.c @@ -27,7 +27,7 @@ /* -usage: open_by_handle [-cludmrwapk] [<-i|-o> ] [num_files] +usage: open_by_handle [-cludmrwapkh] [<-i|-o> ] [num_files] Examples: @@ -109,7 +109,7 @@ struct handle { void usage(void) { - fprintf(stderr, "usage: open_by_handle [-cludmrwapk] [<-i|-o> ] [num_files]\n"); + fprintf(stderr, "usage: open_by_handle [-cludmrwapkh] [<-i|-o> ] [num_files]\n"); fprintf(stderr, "\n"); fprintf(stderr, "open_by_handle -c [N] - create N test files under test_dir, try to get file handles and exit\n"); fprintf(stderr, "open_by_handle [N] - get file handles of test files, drop caches and try to open by handle\n"); @@ -149,7 +149,7 @@ int main(int argc, char **argv) if (argc < 2) usage(); - while ((c = getopt(argc, argv, "cludmrwapki:o:")) != -1) { + while ((c = getopt(argc, argv, "cludmrwapkhi:o:")) != -1) { switch (c) { case 'c': create = 1;