From: Ryusuke Konishi <konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
To: zahid.chowdhury-VJizFkI/10gAspv4Qr0y0gC/G2K4zDHf@public.gmane.org
Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: mount & fsck of nilfs partition fail.
Date: Sat, 18 Jun 2011 13:53:12 +0900 (JST) [thread overview]
Message-ID: <20110618.135312.64853996.ryusuke@osrg.net> (raw)
In-Reply-To: <053D39D3D76C474EB2D2A284AA6BA3181B05E99A12-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
On Fri, 17 Jun 2011 14:55:04 -0700, Zahid Chowdhury wrote:
> Hello Ryusuke,
> I have attached the output below (let me know if you need anything further - thanks for your help):
> [Thread debugging using libthread_db enabled]
> 0x0090a402 in __kernel_vsyscall ()
> #0 0x0090a402 in __kernel_vsyscall ()
> No symbol table info available.
> #1 0x00267713 in __waitpid_nocancel () from /lib/libc.so.6
> No symbol table info available.
> #2 0x0020c07b in do_system () from /lib/libc.so.6
> No symbol table info available.
> #3 0x08049154 in nilfs_backtrace () at fsck0.nilfs2.c:176
> cmd = "backtrace 10688 > /var/log/bt_fsck0.nilfs2.10688.out 2>&1\000\000\000\243\213)\000\032\200*\000\024\215#\000\002", '\000' <repeats 12 times>"\360, l\222\002\000\000\000\364\257\062\000\000\000\000"
> progname = "/sbin\000fsck0.nilfs2", '\000' <repeats 18 times>, "`\000\000\000p\301\062\000\004\000\000\000\346\356#\000\000\000\000\000\230\301\062\000p\000\000\000\377\017\000\000@\000\000\000\300\277\337\bp\301\062\0
> 00\000 \004\000\032\200*\000\000\020\002\000\001\000\000\000\000\000\000"
> n = <value optimized out>
> #4 0x08049251 in read_block (fd=3, blocknr=2696911, buf=0x8ddb8b0, size=4096)
> at fsck0.nilfs2.c:204
> No locals.
> #5 0x080492d9 in next_ss_entry (fd=3, blocknrp=0xbfc458b8,
> offsetp=0xbfc458c4, entry_size=8) at fsck0.nilfs2.c:570
> p = <value optimized out>
> #6 0x0804994c in get_latest_cno (fd=3, seginfo=0x8dfd8f8, start=0x8dfe410)
> at fsck0.nilfs2.c:636
> No locals.
> #7 find_latest_cno_in_logical_segment (fd=3, seginfo=0x8dfd8f8,
> start=0x8dfe410) at fsck0.nilfs2.c:660
> loginfo = 0x8dfe410
> cno = 3249616
> latest_cno = 0
> seq = <value optimized out>
> i = 0
> #8 0x0804aafc in nilfs_fsck (argc=2146089, argv=0xbfc4579c)
> at fsck0.nilfs2.c:1058
> No locals.
> #9 main (argc=2146089, argv=0xbfc4579c) at fsck0.nilfs2.c:1183
> No locals.
Ok, get_latest_cno function seems to have something wrong.
Could you please get some debug information with the following patch ?
Ryusuke Konishi
---
From: Ryusuke Konishi <konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
fsck0.nilfs2: insert debug messages in get_latest_cno function
---
sbin/fsck/fsck0.nilfs2.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/sbin/fsck/fsck0.nilfs2.c b/sbin/fsck/fsck0.nilfs2.c
index 6a41766..7b70911 100644
--- a/sbin/fsck/fsck0.nilfs2.c
+++ b/sbin/fsck/fsck0.nilfs2.c
@@ -592,6 +592,11 @@ static __u64 get_latest_cno(int fd, __u64 log_start)
offset = le16_to_cpu(ss->ss_bytes);
fblocknr = blocknr + DIV_ROUND_UP(le32_to_cpu(ss->ss_sumbytes),
blocksize);
+ fprintf(stderr, "%s: log_start=%llu (segnum=%lu): nfinfo=%lu, "
+ "fblocknr=%llu\n", __func__,
+ (unsigned long long)log_start,
+ (unsigned long)log_start / blocks_per_segment,
+ (unsigned long)nfinfo, (unsigned long long)fblocknr);
for (i = 0; i < nfinfo; i++) {
finfo = next_ss_entry(fd, &blocknr, &offset, sizeof(*finfo));
@@ -601,6 +606,14 @@ static __u64 get_latest_cno(int fd, __u64 log_start)
nnodeblk = nblocks - ndatablk;
ino = le64_to_cpu(finfo->fi_ino);
+ fprintf(stderr, "%s: finfo: ino=%llu, sum-blocknr=%llu, "
+ "offset=%u, nblocks=%lu, ndatablk=%lu, "
+ "fblocknr=%llu\n", __func__,
+ (unsigned long long)ino,
+ (unsigned long long)blocknr, offset,
+ (unsigned long)nblocks, (unsigned long)ndatablk,
+ (unsigned long long)fblocknr);
+
if (ino == NILFS_DAT_INO) {
__le64 *blkoff;
struct nilfs_binfo_dat *binfo_dat;
--
1.7.3.5
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-06-18 4:53 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-13 7:13 mount & fsck of nilfs partition fail Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181B05E4E02D-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-06-13 12:33 ` Ryusuke Konishi
[not found] ` <20110613.213316.221578492.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-06-13 21:12 ` Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181B05E4E167-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-06-13 22:21 ` dexen deVries
[not found] ` <201106140021.52229.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-06-13 22:28 ` mount & fsck of nilfs partition fail. [correction] dexen deVries
2011-06-13 23:28 ` mount & fsck of nilfs partition fail Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181B05E4E1CE-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-06-13 23:51 ` Ryusuke Konishi
[not found] ` <20110614.085157.212693296.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-06-14 18:04 ` Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181B05E4E394-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-06-15 1:42 ` Ryusuke Konishi
[not found] ` <20110615.104251.29260790.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-06-15 10:58 ` Ryusuke Konishi
[not found] ` <20110615.195858.252298449.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-06-15 18:32 ` Ryusuke Konishi
[not found] ` <20110616.033201.162617955.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-06-15 18:38 ` Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181B05E99563-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-06-17 18:29 ` Ryusuke Konishi
[not found] ` <20110618.032928.182500686.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-06-17 21:55 ` Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181B05E99A12-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-06-18 4:53 ` Ryusuke Konishi [this message]
[not found] ` <20110618.135312.64853996.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-06-20 18:27 ` Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181B05E99CC6-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-06-23 11:25 ` Ryusuke Konishi
[not found] ` <20110623.202505.27804490.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-06-23 18:21 ` Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181B05E9A356-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-06-24 16:26 ` Ryusuke Konishi
[not found] ` <20110625.012634.121140098.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-07-05 0:29 ` Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181B05EE2ED0-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-07-06 2:16 ` Ryusuke Konishi
[not found] ` <20110706.111615.163244275.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-07-08 23:52 ` Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181B05F38A67-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-07-14 0:54 ` Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181B05F390D2-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-08-08 21:33 ` Zahid Chowdhury
[not found] ` <053D39D3D76C474EB2D2A284AA6BA3181B06066B94-ZjuI7xOJlFPnaE3xbIMyWkCiaQ3SRT3KFkJ40O1dFu8@public.gmane.org>
2011-08-23 3:03 ` Ryusuke Konishi
[not found] ` <20110823.120347.178748126.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-08-23 14:15 ` Zahid Chowdhury
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=20110618.135312.64853996.ryusuke@osrg.net \
--to=konishi.ryusuke-zyj7fxus5i5l9jvzuh4aog@public.gmane.org \
--cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=zahid.chowdhury-VJizFkI/10gAspv4Qr0y0gC/G2K4zDHf@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox