From: Jeff Mahoney <jeffm@suse.com>
To: "Vladimir V. Saveliev" <vs@namesys.com>
Cc: ReiserFS Mailing List <reiserfs-devel@vger.kernel.org>
Subject: Re: [PATCH 07/39] reiserfs: introduce reiserfs_error()
Date: Fri, 08 Jun 2007 14:59:21 -0400 [thread overview]
Message-ID: <4669A709.70707@suse.com> (raw)
In-Reply-To: <46688BE3.2000807@namesys.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vladimir V. Saveliev wrote:
> Jeff Mahoney wrote:
>> Although reiserfs can currently handle severe errors such as journal failure,
>> it cannot handle less severe errors like metadata i/o failure. The following
>> patch adds a reiserfs_error() function akin to the one in ext3.
>>
>> Subsequent patches will use this new error handler to handle errors more
>> gracefully in general.
>>
>>
>> Signed-off-by: Jeff Mahoney <jeffm@suse.com>
>>
>> --
>> fs/reiserfs/prints.c | 33 +++++++++++++++++++++++++++++++++
>> include/linux/reiserfs_fs.h | 3 +++
>> 2 files changed, 36 insertions(+)
>>
>> --- a/fs/reiserfs/prints.c 2007-05-30 15:43:37.000000000 -0400
>> +++ b/fs/reiserfs/prints.c 2007-05-30 17:55:06.000000000 -0400
>> @@ -373,6 +373,39 @@ void __reiserfs_panic(struct super_block
>> id ? id : "", id ? " " : "", function, error_buf);
>> }
>>
>> +void reiserfs_handle_error(struct super_block *sb, int errno)
>> +{
>> +
>> + if (sb->s_flags & MS_RDONLY)
>> + return;
>> +
>> + if (reiserfs_error_ro(sb)) {
>> + reiserfs_info(sb, "Remounting filesystem read-only\n");
>> + sb->s_flags |= MS_RDONLY;
>> + } else {
>> + reiserfs_journal_abort(sb, errno);
>> + }
>
> shouldn't reiserfs_journal_abort be called in either case?
Yeah, you're probably right. I mostly lifted the logic for this from
ext3, which is less fragile in that sense.
- -Jeff
- --
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFGaacJLPWxlyuTD7IRAvxeAJ9gj/bPaTeCI6TLo8lvT8fA8ziGnQCgori6
xmnW1N/FAUefyCVl42HEYIo=
=9vBW
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2007-06-08 18:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070530220511.681688471@mail.jeffreymahoney.com>
[not found] ` <20070530222101.190219224@mail.jeffreymahoney.com>
[not found] ` <4668805C.2070408@namesys.com>
[not found] ` <46688053.4050409@suse.com>
[not found] ` <1181257975.21257.9.camel@localhost>
2007-06-08 1:28 ` [PATCH 33/39] reiserfs: split right balancing part of balance_leaf() off Jeff Mahoney
[not found] ` <46688C0C.2050102@namesys.com>
2007-06-08 16:02 ` [PATCH 00/39] reiserfs: patch queue Jeff Mahoney
[not found] ` <20070530222058.368999370@mail.jeffreymahoney.com>
[not found] ` <46688BE3.2000807@namesys.com>
2007-06-08 18:59 ` Jeff Mahoney [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=4669A709.70707@suse.com \
--to=jeffm@suse.com \
--cc=reiserfs-devel@vger.kernel.org \
--cc=vs@namesys.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 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.