From: Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org>
To: jir-hfpbi5WX9J54Eiagz67IpQ@public.gmane.org
Cc: ninegua-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Segment magic number invalid
Date: Thu, 20 May 2010 01:14:55 +0900 (JST) [thread overview]
Message-ID: <20100520.011455.32954390.ryusuke@osrg.net> (raw)
In-Reply-To: <871vd8dms5.wl%jir-27yqGEOhnJbQT0dZR+AlfA@public.gmane.org>
On Wed, 19 May 2010 22:49:30 +0900, Jiro SEKIBA wrote:
> > > Actually, I now wonder what could have gone wrong in my case. I wasn't
> > > doing any disk intensive task and the machine wasn't suspended to ram
> > > during the course.
> >
> > This problem can happen if the block device doesn't support "write
> > barrier" properly. Unfortunately, such devices are not uncommon even
> > now.
> >
> > I feel we should do something for it.
>
> How abou updating one of super blocks when super block update needed?
>
> I'm hoping that even "write barrier" is not supported, back up super block
> likely points valid older log.
>
> In case latest super block, which has greater CP, points invalid log,
> try to search log from the other super block that has older log and
> roll forwad the log until it finds newer super root.
>
> Futher more, because each super block is less frequently updated,
> it may address low-end consumer flash super block hot-spot issue.
Seems a nice solution.
And it looks feasible now since the patch titled "nilfs2: use
checkpoint number instead of timestamp to select super block" made it
easy.
The secondary super block is written to disk along with the primary
one, but less frequently. So it can be implemented by changing spec
of the dupsb argument of nilfs_commit_super to "other one" from "both
(dupsb)".
Can you make draft patches?
Thanks,
Ryusuke Konishi
--
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:[~2010-05-19 16:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-15 0:24 Segment magic number invalid Paul L
[not found] ` <AANLkTikEfAtM5PdXSFw5pA_8mDW5pcyxes3GTO3kMBPa-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-05-16 1:33 ` Ryusuke Konishi
[not found] ` <AANLkTinBFQYWRZRmVL69lqxRG1p0cBQ2AxBiFk4SlNE8@mail.gmail.com>
[not found] ` <AANLkTinBFQYWRZRmVL69lqxRG1p0cBQ2AxBiFk4SlNE8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-05-16 18:32 ` Paul L
[not found] ` <AANLkTimHvMze3B8fQE383WW8WLbOYcZx0pz0sfjC2DhJ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-05-17 2:46 ` Ryusuke Konishi
[not found] ` <20100517.114657.112904526.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-05-17 4:14 ` Paul L
[not found] ` <AANLkTimfmJU5h4pS23eKpjLNV_c6d4YEBHNmBdcy-r4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-05-17 7:26 ` Ryusuke Konishi
[not found] ` <20100517.162614.107743625.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-05-19 13:49 ` Jiro SEKIBA
[not found] ` <871vd8dms5.wl%jir-27yqGEOhnJbQT0dZR+AlfA@public.gmane.org>
2010-05-19 16:14 ` Ryusuke Konishi [this message]
[not found] ` <20100520.011455.32954390.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-05-27 7:27 ` [PATCH] nilfs2: sync super blokcs in turns Jiro SEKIBA
[not found] ` <87r5kx6bz9.wl%jir-27yqGEOhnJbQT0dZR+AlfA@public.gmane.org>
2010-05-27 16:59 ` Ryusuke Konishi
[not found] ` <20100528.015959.179492440.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-05-28 2:29 ` Jiro SEKIBA
[not found] ` <87zkzkpxn3.wl%jir-27yqGEOhnJbQT0dZR+AlfA@public.gmane.org>
2010-06-02 18:26 ` Ryusuke Konishi
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=20100520.011455.32954390.ryusuke@osrg.net \
--to=ryusuke-sg5x7nla6pw@public.gmane.org \
--cc=jir-hfpbi5WX9J54Eiagz67IpQ@public.gmane.org \
--cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ninegua-Re5JQEeQqe8AvxtiuMwx3w@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