From patchwork Wed Feb 24 10:52:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Fougner X-Patchwork-Id: 8404821 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 35B12C0553 for ; Wed, 24 Feb 2016 10:54:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4D2412035E for ; Wed, 24 Feb 2016 10:54:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 120A7202D1 for ; Wed, 24 Feb 2016 10:54:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755843AbcBXKxR (ORCPT ); Wed, 24 Feb 2016 05:53:17 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35923 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756403AbcBXKxF (ORCPT ); Wed, 24 Feb 2016 05:53:05 -0500 Received: by mail-wm0-f65.google.com with SMTP id a4so2281741wme.3 for ; Wed, 24 Feb 2016 02:53:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=k1kw8k4qNOrOQJCP4Q2YRDxgivxbYgj2PyYcGo5nr+0=; b=ZzlbDXQ/083YuGdBr23S0nqfviuohDc7US8ZGjRvI08N7AgpwH3i8ysaAju2HmXrD8 V909NBF3gY9qOJ6/MANY9TQpf68aahOsn1fKxoG1PAr68ONgqSSkSfeZ/p24boCm9pxb 6jMc8E905vD4Jfs2WzwcgzVdhZM4czF0ztgufuNV9zoewnmiQXYdZUlO3w8S13p2a6Dd kQ5cURzi8xzwGktwAHVpWRBqteActcsMHPGgMFLJGNOvZ+mdv6kuniXSNKutjVUalB05 yImwxcMh+AyLmlo8AldoA/Es9j2sLEx8HMtyCgcIi7ugjXK0OO/FjQllYn3VDXwakqc4 +QXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=k1kw8k4qNOrOQJCP4Q2YRDxgivxbYgj2PyYcGo5nr+0=; b=lm9lunQMnIB7Sb0Opx9Kg+gsJNmpIdIbo+hcB3nHC5D8D/JyJw0mY6dok9fqy5z1hE VPXO4Kgk8qRac5WtUJvjA+z26/CdO6Sjg78vv4cAm/2aDtoZwugitagCgRqE7eN6ciRo paS7hkZdbdzyk84zIKLcknp1+hrfjMiug3Wt/mNxLsuqNuwrcXhvrorC99FAwjtfntGk 5r33nty5bSQVtPe9VaLuR5oqIRyfHtd55Q6/Bc39LcfCu16UizPDVUYtjqtgI/PxBcAn 3es3+XpxxZ24UR0Q4bYVVpKZitLGKM0MjJrqjWLozCbg9edwBy6rTcvyQSJtMLLUgBZY CI4Q== X-Gm-Message-State: AG10YOQWPz7y3M0zFiUYcGs5EOXUDkjnSn1Bns6Qp4Dzun/lRyjOlxfhk/cP/X1Iv9FmXA== X-Received: by 10.28.194.136 with SMTP id s130mr24266427wmf.23.1456311183863; Wed, 24 Feb 2016 02:53:03 -0800 (PST) Received: from localhost.localdomain (217-208-81-241-no32.tbcn.telia.com. [217.208.81.241]) by smtp.gmail.com with ESMTPSA id y3sm30678769wmy.17.2016.02.24.02.53.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Feb 2016 02:53:02 -0800 (PST) From: Alexander Fougner To: linux-btrfs@vger.kernel.org Cc: Alexander Fougner Subject: [PATCH 2/2] btrfs-progs: update docs for inspect-internal dump-super Date: Wed, 24 Feb 2016 11:52:34 +0100 Message-Id: <1456311154-32703-2-git-send-email-fougner89@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1456311154-32703-1-git-send-email-fougner89@gmail.com> References: <1456311154-32703-1-git-send-email-fougner89@gmail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Alexander Fougner --- Documentation/btrfs-inspect-internal.asciidoc | 38 +++++++++++++++++++++++++++ btrfs-completion | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/Documentation/btrfs-inspect-internal.asciidoc b/Documentation/btrfs-inspect-internal.asciidoc index 25e6b8b..a151471 100644 --- a/Documentation/btrfs-inspect-internal.asciidoc +++ b/Documentation/btrfs-inspect-internal.asciidoc @@ -92,6 +92,44 @@ Print info of the specified block only. -t :::: Print only the tree with the specified ID. +*show-super* [options] [device...]:: +(needs root privileges) ++ +Show btrfs superblock information stored in devices. +It is used to print the information of superblock, +you can specify which mirror to print out. ++ +By default, every device's first superblock will be printed out. ++ +Mainly used for debug purpose. ++ +`Options` ++ + +-f:::: +Print full superblock information. ++ +Including the system chunk array and backup roots. + +-a:::: +Print information of all superblocks. ++ +If this option is given, '-i' option will be ignored. + +-i :::: +Specify which mirror to print out. ++ + is between 0 and 2. +If several '-i ' are given, only the last one is valid. + +-F:::: +Attempt to print the superblock even if no superblock magic is found. May end +badly. + +-s :::: +specifiy offset to a superblock in a non-standard location at 'bytenr', useful +for debugging (disables the '-f' option) + EXIT STATUS ----------- diff --git a/btrfs-completion b/btrfs-completion index 7631911..db0dd97 100644 --- a/btrfs-completion +++ b/btrfs-completion @@ -36,7 +36,7 @@ _btrfs() commands_device='scan add delete remove ready stats usage' commands_scrub='start cancel resume status' commands_rescue='chunk-recover super-recover' - commands_inspect_internal='inode-resolve logical-resolve subvolid-resolve rootid min-dev-size dump-tree' + commands_inspect_internal='inode-resolve logical-resolve subvolid-resolve rootid min-dev-size dump-tree dump-super' commands_property='get set list' commands_quota='enable disable rescan' commands_qgroup='assign remove create destroy show limit'