All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Schmidt <list.btrfs@jan-o-sch.net>
To: Jan Schubert <Jan.Schubert@GMX.li>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH v7 0/8] Btrfs scrub: print path to corrupted files and trigger nodatasum fixup
Date: Mon, 25 Jul 2011 15:15:03 +0200	[thread overview]
Message-ID: <4E2D6C57.7020302@jan-o-sch.net> (raw)
In-Reply-To: <4E2D5C36.306@GMX.li>

On 25.07.2011 14:06, Jan Schubert wrote:
> On 07/25/2011 10:34 AM, Jan Schmidt wrote:
>> On 24.07.2011 22:44, Jan Schubert wrote:
>>> Any chance to resolve the inodes to affected files manualy?
>> That's cumbersome, but you can do it using the information contained in
>> the debug-tree output. But I'd rather find the bug I must have
>> introduced :-)
> 
> Thx, let me know when there is a new patch available. I did a search for
> the inodes listed in dmesg but could not find all of them in the debug
> tree. And for the ones I found it looks not soo easy to match them to
> filenames.

Look for "key (<inum> INODE_REF" in your output, replacing "<inum>" with
the actual inode number. In the next line you'll find the name of the
file. To construct the path, you need to go back to the parent and
lookup its name the same way. The parent inode is the number behind the
"INODE_REF" part in the key.

> BTW: What is the option -e for btrfs-debug-tree meaning? If I try to use
> it I just get an segfault right after starting:
> 
> btrfs-debug-tre[1875]: segfault at c4 ip 000000000040a839 sp
> 00007fff9498ff50 error 4 in btrfs-debug-tree[400000+1c000]

No, never used it.

>>> Are you interested in btrfs-debug-tree anyway?
>> Absolutely, yes.
>>
>> Alternatively, if you have a lot of bandwidth and no private data in
>> your file system, it would be even more helpful if you put the whole
>> file system somewhere. But the btrfs-debug-tree output would help a lot,
>> too.
> 
> Jan, what if there are some private data inside? Will you use it for
> other purposes than debugging? I understood that there are "just"
> filenames listet in there, no content, right?

Whatever you provide will of course only be used for debugging purposes.
But I can totally understand if you don't want to provide the full file
system. I wouldn't either, I guess.

The debug tree output contains meta data only, including all file names
but no actual data.

> The bziped debugtree is about 39M in size, I would be able to provide a
> download for you!?

That would be great. Where can I get it? Send me an off-list reply or
contact me on freenode irc (janosch) if you don't want it on the list.

-Jan

  parent reply	other threads:[~2011-07-25 13:15 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-22 11:12 [PATCH v7 0/8] Btrfs scrub: print path to corrupted files and trigger nodatasum fixup Jan Schmidt
2011-07-22 11:12 ` [PATCH v7 1/8] btrfs: added helper functions to iterate backrefs Jan Schmidt
2011-07-27  7:59   ` Li Zefan
2011-07-27  8:06     ` Li Zefan
2011-07-27  8:22       ` Jan Schmidt
2011-07-22 11:12 ` [PATCH v7 2/8] btrfs scrub: added unverified_errors Jan Schmidt
2011-07-22 11:12 ` [PATCH v7 3/8] btrfs scrub: print paths of corrupted files Jan Schmidt
2011-07-22 11:12 ` [PATCH v7 4/8] btrfs scrub: bugfix: mirror_num off by one Jan Schmidt
2011-07-22 11:12 ` [PATCH v7 5/8] btrfs: add mirror_num to extent_read_full_page Jan Schmidt
2011-07-22 11:12 ` [PATCH v7 6/8] btrfs scrub: use int for mirror_num, not u64 Jan Schmidt
2011-07-22 11:12 ` [PATCH v7 7/8] btrfs scrub: add fixup code for errors on nodatasum files Jan Schmidt
2011-07-22 11:12 ` [PATCH v7 8/8] btrfs: new ioctls to do logical->inode and inode->path resolving Jan Schmidt
2011-07-23 22:38 ` [PATCH v7 0/8] Btrfs scrub: print path to corrupted files and trigger nodatasum fixup Jan Schubert
2011-07-24 11:36   ` Jan Schmidt
     [not found]     ` <4E2C0E2C.4070606@GMX.li>
     [not found]       ` <4E2C1E9D.1090403@jan-o-sch.net>
     [not found]         ` <4E2C8425.9090601@GMX.li>
2011-07-25  8:34           ` Jan Schmidt
     [not found]             ` <4E2D5C36.306@GMX.li>
2011-07-25 13:15               ` Jan Schmidt [this message]
     [not found]                 ` <4E2D9290.6020600@GMX.li>
     [not found]                   ` <4E2E912E.7040109@jan-o-sch.net>
     [not found]                     ` <4E2E92FA.4060008@GMX.li>
2011-07-26 17:36                       ` Jan Schmidt

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=4E2D6C57.7020302@jan-o-sch.net \
    --to=list.btrfs@jan-o-sch.net \
    --cc=Jan.Schubert@GMX.li \
    --cc=linux-btrfs@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.