From patchwork Thu Jun 22 07:57:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lakshmipathi.G" X-Patchwork-Id: 9803753 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 B744F60386 for ; Thu, 22 Jun 2017 07:59:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB47A28573 for ; Thu, 22 Jun 2017 07:59:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A00C6285C6; Thu, 22 Jun 2017 07:59:02 +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=-0.7 required=2.0 tests=BAYES_00, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS, RCVD_IN_SORBS_WEB autolearn=no 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 1700728573 for ; Thu, 22 Jun 2017 07:59:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751201AbdFVH7A (ORCPT ); Thu, 22 Jun 2017 03:59:00 -0400 Received: from p3nlsmtpcp01-02.prod.phx3.secureserver.net ([184.168.200.140]:58444 "EHLO p3nlsmtpcp01-02.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124AbdFVH67 (ORCPT ); Thu, 22 Jun 2017 03:58:59 -0400 Received: from p3plcpnl0639.prod.phx3.secureserver.net ([50.62.176.166]) by : HOSTING RELAY : with SMTP id Nx02d2A204evnNx02dKAs3; Thu, 22 Jun 2017 00:57:58 -0700 Received: from [103.215.169.1] (port=7646 helo=giis.co.in) by p3plcpnl0639.prod.phx3.secureserver.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.88) (envelope-from ) id 1dNx02-0006sE-7S; Thu, 22 Jun 2017 00:57:58 -0700 Date: Thu, 22 Jun 2017 13:27:53 +0530 From: "Lakshmipathi.G" To: linux-btrfs@vger.kernel.org, dsterba@suse.cz Subject: [PATCH v2] btrfs-progs: Fix 'btrfs device stats --check' cli option Message-ID: <20170622075753.GA27046@giis.co.in> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - p3plcpnl0639.prod.phx3.secureserver.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - giis.co.in X-Get-Message-Sender-Via: p3plcpnl0639.prod.phx3.secureserver.net: authenticated_id: lakshmipathi.g@giis.co.in X-Authenticated-Sender: p3plcpnl0639.prod.phx3.secureserver.net: lakshmipathi.g@giis.co.in X-Source: X-Source-Args: X-Source-Dir: X-CMAE-Envelope: MS4wfDA4zhS6vXXIkVwEgJ3/9zwbVOrceouT+L73hMk130qmGv4z8KaqAWJ8lhQP1Pa5CWUCNaYIKq0PoNLGcABZcRqbHgcZFC7yT4lX88DSAtOW/1XFsM0h 0oT4CHY+rsLd3OiLpRGlgplmYdmbizRXRBfbsaJy/NGhb4/fEa/e4FX826ibeT7x3yXom325i+XoaMtGkMltrKsMxG7qOrCQWcDNvyo4SKctCRFr6p7UnmJy Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Bug 194961 - btrfs device stats --check does not work https://bugzilla.kernel.org/show_bug.cgi?id=194961 Reported-by: Tomas Thiemel Signed-off-by: Lakshmipathi.G --- cmds-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmds-device.c b/cmds-device.c index 5e016a7..4337eb2 100644 --- a/cmds-device.c +++ b/cmds-device.c @@ -400,6 +400,7 @@ static int cmd_device_stats(int argc, char **argv) while (1) { int c; static const struct option long_options[] = { + {"check", no_argument, NULL, 'c'}, {"reset", no_argument, NULL, 'z'}, {NULL, 0, NULL, 0} };