From patchwork Thu Nov 16 13:55: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: 838581 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-ext4-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="rj1Loscx"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yd2pC4JRwz9s7f for ; Fri, 17 Nov 2017 00:56:03 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935124AbdKPN4C (ORCPT ); Thu, 16 Nov 2017 08:56:02 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:47640 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935116AbdKPNz5 (ORCPT ); Thu, 16 Nov 2017 08:55:57 -0500 Received: by mail-lf0-f67.google.com with SMTP id f125so30240197lff.4 for ; Thu, 16 Nov 2017 05:55:56 -0800 (PST) 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=hXXCOwxvhC/IfouKdX3yIpwkQvl1xVHlL5GE6DzEo8I=; b=rj1Loscx3WqyhbC63TU2b6f3jzGGpkR1n8gk6XgDxmTAdKBJdEZJZZsQ1xvkPsylBq 1xX1dGgAChEjzu5/ppI4zA1zWS972u1Bqy0Sz7Hq0CJOMEmG66sJ8vUxKXkCzcmS4jJm QdgR+HMJWHV7VpQxmGPAYkF2APxKrHeMt+8rpM/Bo40TYIb1tp4qDV+MpacYUX+DRPSc C8S3li1sJoYjcCgLMSjr+u8wUxgLiVZ3rIgXVg3iM+JcvJTjY9KtjGflh+ejhtuzsmx7 Tue4awyMFfcgudSgFydSgnACpy6ZkjoOtrcQA2SWdqp7711MYmRK0L1erXS3UHi0+Ye2 M2Ig== 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=hXXCOwxvhC/IfouKdX3yIpwkQvl1xVHlL5GE6DzEo8I=; b=OEuQ/yUz9eQ44VECpCpug2Bv5L4wPG6KHt0lNnQqUdE6KJL5RMY2xZxsXt1H9pa8AZ NNxYKZFLTGrLqrEIqPOxJjnr4Fbkjm9HiVtLg//OJ8sTaZI1sj++ik6ONy9XV/AWGy22 Mbw4K5zKPhLqYx19TlXJCBfNaaH/yqfw/EcJVdqiHJDg6Ymql8JaOYGJZjgt2BfO4Ga9 yPcwRMOaOwzNenQzunh72fpcqIhCHfEoZHqyR5aLzsRpBa5XNfm07kPyPFEjHEwsQH8v XWOGZE/fQjnvT1gdZhIe57fYCgrHReSVPgUBzNAcFyICW0FL02T1uaQLclHxLIBnIr+U dvUw== X-Gm-Message-State: AJaThX7f4HxnzHL6k+1o1o293bldsyx0ThnDfzPzM3ufxP8j1Lb6pl6p E/dt3zwPCYOYpZw/3rJYiXlDyw== X-Google-Smtp-Source: AGs4zMYfAIrJACLktKg9QdbC5aqRhxQaieMIkeCeaJsAtD/Gymy/BNVH4LjDBv/GPbBiToM1lFRcNw== X-Received: by 10.46.9.197 with SMTP id 188mr793403ljj.134.1510840555865; Thu, 16 Nov 2017 05:55:55 -0800 (PST) Received: from C02TN4C6HTD6.lan ([91.105.192.198]) by smtp.gmail.com with ESMTPSA id n67sm293146lja.44.2017.11.16.05.55.54 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 16 Nov 2017 05:55:55 -0800 (PST) From: Artem Blagodarenko To: linux-ext4@vger.kernel.org Cc: adilger.kernel@dilger.ca, Artem Blagodarenko Subject: [PATCH v2 4/4] man: add -b option to e2image Date: Thu, 16 Nov 2017 16:55:46 +0300 Message-Id: <20171116135546.9991-5-artem.blagodarenko@gmail.com> X-Mailer: git-send-email 2.13.6 (Apple Git-96) In-Reply-To: <20171116135546.9991-1-artem.blagodarenko@gmail.com> References: <20171116135546.9991-1-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 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/misc/e2image.8.in b/misc/e2image.8.in index f28a76ea..d6125bb4 100644 --- a/misc/e2image.8.in +++ b/misc/e2image.8.in @@ -11,6 +11,14 @@ e2image \- Save critical ext2/ext3/ext4 filesystem metadata to a file .B \-r|Q ] [ +.B \-b +.I superblock +] +[ +.B \-B +.I blocksize +] +[ .B \-fr ] .I device @@ -167,6 +175,22 @@ 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 +Option +.B \-B +.I blocksize +can be used to set superblock block size. Normally, e2fsck will search +for the superblock at various different block sizes in an attempt to find +the appropriate blocksize. This search can be fooled in some cases. This +option forces e2fsck to only try locating the superblock at a particular +blocksize. If the superblock is not found, e2fsck will terminate with a +fatal error. +.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 +241,14 @@ 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 +Options +.B \-b +.I superblock +and +.B \-B +.I blocksize +can be used same way as for raw images. +.PP .SH INCLUDING DATA Normally .B e2image