From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E585AC433EF for ; Tue, 28 Sep 2021 02:34:14 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3742861213 for ; Tue, 28 Sep 2021 02:34:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3742861213 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HJNqm5Qtbz2yPJ for ; Tue, 28 Sep 2021 12:34:12 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.alibaba.com (client-ip=115.124.30.43; helo=out30-43.freemail.mail.aliyun.com; envelope-from=hsiangkao@linux.alibaba.com; receiver=) Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HJNqc25Hbz2xvL for ; Tue, 28 Sep 2021 12:33:59 +1000 (AEST) X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R241e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04423; MF=hsiangkao@linux.alibaba.com; NM=1; PH=DS; RN=5; SR=0; TI=SMTPD_---0UptZmol_1632796429; Received: from B-P7TQMD6M-0146.local(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0UptZmol_1632796429) by smtp.aliyun-inc.com(127.0.0.1); Tue, 28 Sep 2021 10:33:51 +0800 Date: Tue, 28 Sep 2021 10:33:49 +0800 From: Gao Xiang To: Guo Xuenan , mpiglet@outlook.com Subject: Re: [PATCH v3 1/5] erofs-utils: introduce dump.erofs Message-ID: References: <20210915093537.2579575-1-guoxuenan@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-erofs@lists.ozlabs.org Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" Hi, On Sun, Sep 26, 2021 at 11:21:42AM +0800, Gao Xiang wrote: > Hi Xuenan and Qi, > > On Wed, Sep 15, 2021 at 05:35:33PM +0800, Guo Xuenan wrote: > > From: Wang Qi > > > > Add dump-tool for erofs to facilitate users directly > > analyzing the erofs image file. > > > > Signed-off-by: Guo Xuenan > > Signed-off-by: Wang Qi > > I'm almost fine with the series, and I will merge some of the patches > later. > > Due to busy work, my original plan was to fix some nits by myself and > apply. Anyway, I will reply some comments this evening... I've merged the first 2 patches into dev branch with modification (so no need to resend the first two patches). The rest patches are still a bit messy, I've set up a new experimental-dump branch, please check out: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/?h=experimental-dump There are some stuffs needing to be resolved in advance: 1) rename all "dumpfs_" prefix into "erofsdump_"; 2) I feel still uncomfortable when reading get_path_by_nid() and erofs_read_dir(). Could we refactor them by introducing erofs_for_each_dir() or likewise? 3) file_category_types and the switch in dumpfs_print_inode() are duplicated to me. I think one of them can be removed instead. 4) please help using "filefrag -v -b1" style when printing extent info in erofsdump_show_inode_phy(), like below: ext: logical_offset: physical_offset: length: expected: flags: 0: 0.. 20479: 21788270592..21788291071: 20480: last,eof Thanks, Gao Xiang