From: Vyacheslav Dubeyko <slava-yeENwD64cLxBDgjK7y7TUQ@public.gmane.org>
To: Michael Conrad <mconrad-HsDW+lVSy7tZ66HEZ9PjWw@public.gmane.org>
Cc: Andrew Morton
<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
Ryusuke Konishi
<konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>,
linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Linux FS Devel
<linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] nilfs2: rework error message subsystem
Date: Wed, 11 Dec 2013 10:43:06 +0400 [thread overview]
Message-ID: <1386744186.3991.20.camel@slavad-ubuntu> (raw)
In-Reply-To: <52A74BD8.4030508-HsDW+lVSy7tZ66HEZ9PjWw@public.gmane.org>
On Tue, 2013-12-10 at 12:14 -0500, Michael Conrad wrote:
> I think this will help. However, the idea I had in mind originally was
> for nilfs to "give up" sooner.
>
> I suspect that my nilfs partition became corrupt for hardware or
> hardware-driver reasons. So lets ignore that part for now.
>
> With the data on the drive being corrupt, it appeared that nilfs
> encountered an invalid directory (possibly just a long string of NUL
> bytes?) and emitted more than a million errors about invalid structures,
> triggering the soft-lockup watchdog and rebooting the system. When I
> recompiled my kernel with soft-lockup set to 5 minutes, it simply filled
> my log files.
>
> [10796.519283] NILFS error (device sdf1): nilfs_check_page: bad entry in
> directory #2383620: rec_len is smaller than minimal - offset=1143304192,
> inode=0, rec_len=0, name_len=0
>
> I haven't read the code involved, but what I think should happen is that
> on the very *first* error, it should return an I/O error to userland.
> Also, the partition was set to "errors=remount-ro", so the very first
> error should also make the filesystem read-only, correct?
>
I think that your vision is correct. I am pondering about likewise
solution too. But, anyway, likewise fixes can be made locally only for
every concrete use-case. To change error messages correctly is easy. But
to suggest proper fix without an issue reproducing is impossible.
Anyway, I'll try to elaborate some fix. But my hands on another task
right now.
Thanks,
Vyacheslav Dubeyko.
--
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
prev parent reply other threads:[~2013-12-11 6:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-02 14:08 [PATCH] nilfs2: rework error message subsystem Vyacheslav Dubeyko
2013-12-04 0:29 ` Andrew Morton
[not found] ` <20131203162944.8f9ef3a08a3292a1959dd025-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2013-12-04 6:33 ` Vyacheslav Dubeyko
2013-12-10 17:14 ` Michael Conrad
[not found] ` <52A74BD8.4030508-HsDW+lVSy7tZ66HEZ9PjWw@public.gmane.org>
2013-12-11 6:43 ` Vyacheslav Dubeyko [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=1386744186.3991.20.camel@slavad-ubuntu \
--to=slava-yeenwd64clxbdgjk7y7tuq@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org \
--cc=linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mconrad-HsDW+lVSy7tZ66HEZ9PjWw@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;
as well as URLs for NNTP newsgroup(s).