From patchwork Wed Sep 11 13:55:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikolay Borisov X-Patchwork-Id: 11141175 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 03C29924 for ; Wed, 11 Sep 2019 13:55:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DEF93206A5 for ; Wed, 11 Sep 2019 13:55:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727919AbfIKNz4 (ORCPT ); Wed, 11 Sep 2019 09:55:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:58250 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727782AbfIKNz4 (ORCPT ); Wed, 11 Sep 2019 09:55:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3F910C166; Wed, 11 Sep 2019 13:55:55 +0000 (UTC) From: Nikolay Borisov To: linux-btrfs@vger.kernel.org Cc: Nikolay Borisov Subject: [PATCH] btrfs-progs: corrupt-block: Fix description of 'r' option Date: Wed, 11 Sep 2019 16:55:52 +0300 Message-Id: <20190911135552.22087-1-nborisov@suse.com> X-Mailer: git-send-email 2.17.1 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Since commit 04be0e4b1962 ("btrfs-progs: corrupt-block: Correctlyi handle -r when passing -I") the 'r' switch is used with both -I and -d options. So remove the wrong clarificatoin that -r is used only with -d option. Signed-off-by: Nikolay Borisov --- btrfs-corrupt-block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrfs-corrupt-block.c b/btrfs-corrupt-block.c index bbef0c02e5d1..716439a5ea7c 100644 --- a/btrfs-corrupt-block.c +++ b/btrfs-corrupt-block.c @@ -119,7 +119,7 @@ static void print_usage(int ret) printf("\t-I Corrupt an item corresponding to the passed key triplet (must also specify the field to corrupt and root for the item)\n"); printf("\t-D Corrupt a dir item corresponding to the passed key triplet, must also specify a field\n"); printf("\t-d Delete item corresponding to passed key triplet\n"); - printf("\t-r Operate on this root (only works with -d)\n"); + printf("\t-r Operate on this root\n"); printf("\t-C Delete a csum for the specified bytenr. When used with -b it'll delete that many bytes, otherwise it's just sectorsize\n"); exit(ret); }