From patchwork Wed Sep 2 03:00:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Borowski X-Patchwork-Id: 7108451 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 B19EABEEC1 for ; Wed, 2 Sep 2015 03:33:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C1FF020608 for ; Wed, 2 Sep 2015 03:33:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 25AB820604 for ; Wed, 2 Sep 2015 03:33:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752138AbbIBDdR (ORCPT ); Tue, 1 Sep 2015 23:33:17 -0400 Received: from tartarus.angband.pl ([89.206.35.136]:56085 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751541AbbIBDdQ (ORCPT ); Tue, 1 Sep 2015 23:33:16 -0400 X-Greylist: delayed 1941 seconds by postgrey-1.27 at vger.kernel.org; Tue, 01 Sep 2015 23:33:15 EDT Received: from kilobyte by tartarus.angband.pl with local (Exim 4.84) (envelope-from ) id 1ZWyI8-0000Rq-E0; Wed, 02 Sep 2015 05:00:52 +0200 From: Adam Borowski To: linux-btrfs@vger.kernel.org Cc: Adam Borowski Subject: [PATCH] btrfs-progs: doc: document btrfs-select-super(8) Date: Wed, 2 Sep 2015 05:00:46 +0200 Message-Id: <1441162846-1653-1-git-send-email-kilobyte@angband.pl> X-Mailer: git-send-email 2.1.4 X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kilobyte@angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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: Adam Borowski --- Documentation/Makefile.in | 1 + Documentation/btrfs-select-super.asciidoc | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Documentation/btrfs-select-super.asciidoc diff --git a/Documentation/Makefile.in b/Documentation/Makefile.in index 0c8b5ba..b03eaf2 100644 --- a/Documentation/Makefile.in +++ b/Documentation/Makefile.in @@ -9,6 +9,7 @@ MAN8_TXT += btrfs-find-root.asciidoc MAN8_TXT += btrfs-image.asciidoc MAN8_TXT += btrfs-map-logical.asciidoc MAN8_TXT += btrfs-show-super.asciidoc +MAN8_TXT += btrfs-select-super.asciidoc MAN8_TXT += btrfstune.asciidoc MAN8_TXT += fsck.btrfs.asciidoc MAN8_TXT += mkfs.btrfs.asciidoc diff --git a/Documentation/btrfs-select-super.asciidoc b/Documentation/btrfs-select-super.asciidoc new file mode 100644 index 0000000..a8d7ef0 --- /dev/null +++ b/Documentation/btrfs-select-super.asciidoc @@ -0,0 +1,29 @@ +btrfs-select-super(8) +===================== + +NAME +---- +btrfs-select-super - overwrite superblock with a backup + +SYNOPSIS +-------- +*btrfs-select-super* -s number dev + +DESCRIPTION +----------- +*btrfs-select-super* destructively overwrites all copies of the superblock +with a specified copy. This helps with certain cases of damage, especially +when barriers were disabled during a power failure. You can find a valid +copy of the superblock with *btrfs check -s*. + +The filesystem specified by `dev` must not be mounted. + +OPTIONS +------- +-s|--super :: +use th superblock copy, valid values are 0 up to 2 if the +respective superblock offset is within the filesystem + +SEE ALSO +-------- +`btrfsck check`(8)