From patchwork Mon Jun 26 16:58:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artem Blagodarenko X-Patchwork-Id: 783934 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3x23FJ1tY6z9sRY for ; Tue, 4 Jul 2017 22:28:20 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="J7Ri/JSL"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752314AbdGDM2S (ORCPT ); Tue, 4 Jul 2017 08:28:18 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:33013 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752268AbdGDM2Q (ORCPT ); Tue, 4 Jul 2017 08:28:16 -0400 Received: by mail-lf0-f66.google.com with SMTP id t72so17698750lff.0 for ; Tue, 04 Jul 2017 05:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lfxvg5+7yZkjp08bAZuF/Bt/ixFo/giybPNPt0ZAL3E=; b=J7Ri/JSLm4Ai0PfEKx7vIMBiJSX5HJPJM8Jm1fVLDkBnOUeWbgulnrq7JjaPHH/61u klntho5ARfNVjP93hlgroTgbHrRGvwtF/WSkKFryb4ztYQEA1iCmV7B87gkbKShICij0 Cbsqe/yMoHtnJm4bM6Lg5igpHLreOPeLSMpk29HH8AbIeNeBKniPVHsgOOrtD0he5Kdd cncSWts4s01+/bpreYxbt1QlllvuKP7qOzyG8n72xwNmDRYFwW6zRbP/0l/NMBwvsBSF WQkoz2INpdRNq7rWXMQ+ISIwvtSNHav307acynbdox+Z47axjUP35V6Dq2fn2QRuTh3v 37Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lfxvg5+7yZkjp08bAZuF/Bt/ixFo/giybPNPt0ZAL3E=; b=NlGX5HofIQaNCMmc60oygHVHy/EsKa4m86MHJvoeoKqH6b9ecE2y2lKdtSKO3Rmwy9 hdkF6FNMKjKFYG7I+LqKwsxsUompBVhvMGkFOAx6zU0e/55KtVjMD+y/8pduWvG7AknN TH8KHM+wJFEmqZnfSDGgYfO++zcOBHFqbG9MoqOtT+/aqQXRmhnlFIcBNNRLDRRIj0Zp X5nbdqH04Wvtq1POxiPDCFH3aC7eP3AzAVuhptszdWYQrwQE8YkvqhgFrVNV4moWyDPv VHCjO36cWWnkPSV91C2LQQRGI9Cu65PW/n7KUiKXM91Q+PMJY56TqTfPn6CKrQURy8x/ qPBA== X-Gm-Message-State: AKS2vOyUAMjoDCf57NkWGsI24qzXpahKbcwraqlJuNUuLnuFfS0u+Lz8 DUelOznIbseaidvr X-Received: by 10.25.149.74 with SMTP id x71mr14078045lfd.94.1499171294524; Tue, 04 Jul 2017 05:28:14 -0700 (PDT) Received: from localhost.localdomain ([91.105.197.111]) by smtp.googlemail.com with ESMTPSA id 25sm3867601ljh.47.2017.07.04.05.28.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 05:28:13 -0700 (PDT) From: Artem Blagodarenko To: linux-ext4@vger.kernel.org Cc: alexey.lyashkov@gmail.com, artem.blagodarenko@gmail.com Subject: [PATCH 4/4] man: add -b option to e2image Date: Mon, 26 Jun 2017 19:58:46 +0300 Message-Id: <1498496326-76684-5-git-send-email-artem.blagodarenko@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1498496326-76684-1-git-send-email-artem.blagodarenko@gmail.com> References: <1498496326-76684-1-git-send-email-artem.blagodarenko@gmail.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Artem Blagodarenko Add manual page for e2image -b option. Signed-off-by: Artem Blagodarenko Reviewed-by: Andreas Dilger --- misc/e2image.8.in | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/misc/e2image.8.in b/misc/e2image.8.in index f28a76e..61c23da 100644 --- a/misc/e2image.8.in +++ b/misc/e2image.8.in @@ -11,6 +11,10 @@ e2image \- Save critical ext2/ext3/ext4 filesystem metadata to a file .B \-r|Q ] [ +.B \-b +.I superblock +] +[ .B \-fr ] .I device @@ -167,6 +171,12 @@ the option will prevent analysis of problems related to hash-tree indexed directories. .PP +Option +.B \-b +.I superblock +can be used to get image from partition with broken primary superblock. +The partition is copied as is including broken primary superblock. +.PP Note that this will work even if you substitute "/dev/hda1" for another raw disk image, or QCOW2 image previously created by .BR e2image . @@ -217,6 +227,11 @@ This can be useful to write a qcow2 image containing all data to a sparse image file where it can be loop mounted, or to a disk partition. Note that this may not work with qcow2 images not generated by e2image. .PP +Option +.B \-b +.I superblock +can be used same way as for raw images. +.PP .SH INCLUDING DATA Normally .B e2image