From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Su Yue <suy.fnst@cn.fujitsu.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 15/15] btrfs-progs: fsck-tests: add image for original and lowmem check
Date: Fri, 26 Jan 2018 18:17:57 +0800 [thread overview]
Message-ID: <502deccc-fcc5-18ba-ffd1-2b387d5aa09d@gmx.com> (raw)
In-Reply-To: <20180126083519.28373-16-suy.fnst@cn.fujitsu.com>
[-- Attachment #1.1: Type: text/plain, Size: 4108 bytes --]
On 2018年01月26日 16:35, Su Yue wrote:
> This image have two cases mixed:
> 1) Both filetypes of dir_item and dir_index about inode 258
> are corrupted.
> 2) inode item 258 is missing.
It would be better to provide some debug tree output in commit message.
Something like:
------
item 6 key (257 DIR_ITEM 4128386376) itemoff 15834 itemsize 35
location key (258 INODE_ITEM 0) type DIR_ITEM.100
transid 7 data_len 0 name_len 5
name: file1
item 7 key (257 DIR_INDEX 2) itemoff 15799 itemsize 35
location key (258 INODE_ITEM 0) type DIR_ITEM.34
transid 7 data_len 0 name_len 5
name: file1
item 8 key (258 INODE_REF 257) itemoff 15784 itemsize 15
index 2 namelen 5 name: file1
------
would explain the problem easier.
And I think the coverage is not that good.
The image will fall into the fallback case as no reliable filetype.
But it would be better to have another image with regular/prealloc file
extent to allow us to exam the filetype guess/find code.
Thanks,
Qu
>
> Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
> ---
> .../029-mismatched-filetype-no-inode/default_case.img | Bin 0 -> 3072 bytes
> 1 file changed, 0 insertions(+), 0 deletions(-)
> create mode 100644 tests/fsck-tests/029-mismatched-filetype-no-inode/default_case.img
>
> diff --git a/tests/fsck-tests/029-mismatched-filetype-no-inode/default_case.img b/tests/fsck-tests/029-mismatched-filetype-no-inode/default_case.img
> new file mode 100644
> index 0000000000000000000000000000000000000000..57fc55b13c18bb9e5098a2fc4cb78f44fcf4abd9
> GIT binary patch
> literal 3072
> zcmeHIdr;F?7EXCTRG?Bxc@>Nzl**%3o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pavn@1$>T&=3_7=bz}(DFsr==Y@6keZ0m
> ztya!P0$!o(C1)SCJ9hSoSk5^t{Zb`iYVMb$BO^M)46RnlO3RAX#_TMYwqi77@8KNm
> zMEX%lf3IE;C<ATPVc`?mUoqC6zzlCka><GfbQpT?a&7vz*jX<DY0X42bXNZZ)<^e$
> HufV?n{Xac9
>
> literal 0
> HcmV?d00001
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 520 bytes --]
prev parent reply other threads:[~2018-01-26 10:18 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-26 8:35 [PATCH 00/15] btrfs-progs: fix filetype mismatch in check Su Yue
2018-01-26 8:35 ` [PATCH 01/15] btrfs-progs: lowmem check: introduce repair_inode_item_mismatch() Su Yue
2018-01-26 8:35 ` [PATCH 02/15] btrfs-progs: lowmem check: find and guess inode filetype Su Yue
2018-01-26 8:49 ` Qu Wenruo
2018-01-26 9:14 ` Qu Wenruo
2018-01-26 9:21 ` Qu Wenruo
2018-01-26 9:31 ` Su Yue
2018-01-26 9:35 ` Qu Wenruo
2018-01-26 8:35 ` [PATCH 03/15] btrfs-progs: lowmem check: find filetype in repair_inode_missing() Su Yue
2018-01-26 9:22 ` Qu Wenruo
2018-01-26 8:35 ` [PATCH 04/15] btrfs-progs: lowmem check: repair complex cases in repair_dir_item() Su Yue
2018-01-26 9:33 ` Qu Wenruo
2018-01-26 8:35 ` [PATCH 05/15] btrfs-progs: lowmem check: let check_dir_item() continue if find wrong inode_item Su Yue
2018-01-26 9:36 ` Qu Wenruo
2018-01-26 8:35 ` [PATCH 06/15] btrfs-progs: lowmem check: let check_dir_item() return if repaired Su Yue
2018-01-26 9:43 ` Qu Wenruo
2018-01-26 8:35 ` [PATCH 07/15] btrfs-progs: lowmem check: find_dir_item by di_key in check_dir_item() Su Yue
2018-01-26 9:37 ` Qu Wenruo
2018-01-26 8:35 ` [PATCH 08/15] btrfs-progs: lowmem check: call get_dir_isize() after repair Su Yue
2018-01-26 8:35 ` [PATCH 09/15] btrfs-progs: lowmem check: change logic of leaf process if repair Su Yue
2018-01-26 10:01 ` Qu Wenruo
2018-01-26 10:15 ` Su Yue
2018-01-26 8:35 ` [PATCH 10/15] btrfs-progs: check: clear I_ERR_FILE_EXTENT_DISCOUNT after repair Su Yue
2018-01-26 10:02 ` Qu Wenruo
2018-01-26 8:35 ` [PATCH 11/15] btrfs-progs: check: modify indoe_rec and backref " Su Yue
2018-01-26 8:35 ` [PATCH 12/15] btrfs-progs: check: increase counter error in check_inode_recs() Su Yue
2018-01-26 10:05 ` Qu Wenruo
2018-01-26 8:35 ` [PATCH 13/15] btrfs-progs: check: find inode filetype in create_inode_item() Su Yue
2018-01-26 10:11 ` Qu Wenruo
2018-01-26 8:35 ` [PATCH 14/15] btrfs-progs: check: handle mismatched filetype in repair_inode_backref Su Yue
2018-01-26 8:35 ` [PATCH 15/15] btrfs-progs: fsck-tests: add image for original and lowmem check Su Yue
2018-01-26 10:17 ` Qu Wenruo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=502deccc-fcc5-18ba-ffd1-2b387d5aa09d@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=suy.fnst@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).