From patchwork Thu Aug 8 02:33:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Bo X-Patchwork-Id: 2840689 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 970CEBF535 for ; Thu, 8 Aug 2013 02:33:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C36BF203A3 for ; Thu, 8 Aug 2013 02:33:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D162A203A8 for ; Thu, 8 Aug 2013 02:33:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933525Ab3HHCdY (ORCPT ); Wed, 7 Aug 2013 22:33:24 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:42174 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932796Ab3HHCdY (ORCPT ); Wed, 7 Aug 2013 22:33:24 -0400 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r782XK63008449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 8 Aug 2013 02:33:20 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r782XJ98005228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Aug 2013 02:33:20 GMT Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r782XJ9Z005215; Thu, 8 Aug 2013 02:33:19 GMT Received: from localhost.localdomain.com (/10.182.228.124) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 07 Aug 2013 19:33:18 -0700 From: Liu Bo To: linux-btrfs@vger.kernel.org Cc: dsterba@suse.cz Subject: [PATCH] Btrfs-progs: add manpage of btrfs-image -m option Date: Thu, 8 Aug 2013 10:33:09 +0800 Message-Id: <1375929189-1920-1-git-send-email-bo.li.liu@oracle.com> X-Mailer: git-send-email 1.8.1.4 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] 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, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 There is a lack of manpage of btrfs-image '-m' option. Signed-off-by: Liu Bo --- btrfs-image.c | 1 + man/btrfs-image.8.in | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/btrfs-image.c b/btrfs-image.c index 82aa4f3..862f081 100644 --- a/btrfs-image.c +++ b/btrfs-image.c @@ -2422,6 +2422,7 @@ static void print_usage(void) fprintf(stderr, "\t-o \tdon't mess with the chunk tree when restoring\n"); fprintf(stderr, "\t-s \tsanitize file names, use once to just use garbage, use twice if you want crc collisions\n"); fprintf(stderr, "\t-w \twalk all trees instead of using extent tree, do this if your extent tree is broken\n"); + fprintf(stderr, "\t-m \trestore metadump image onto multiple disks\n"); exit(1); } diff --git a/man/btrfs-image.8.in b/man/btrfs-image.8.in index d5ba594..d0fdfc7 100644 --- a/man/btrfs-image.8.in +++ b/man/btrfs-image.8.in @@ -42,6 +42,10 @@ problems with your file system tree and need to have it mostly working. Walk all the trees manually and copy any blocks that are referenced. Use this option if your extent tree is corrupted to make sure that all of the metadata is captured. +.TP +\fB\-m\fP +restore metadump image onto multiple disks. Use this option if your metadump +image is created on a multiple disk made btrfs filesystem. .SH AVAILABILITY .B btrfs-image is part of btrfs-progs. Btrfs is currently under heavy development,