From: Stewart Smith <stewart@flamingspork.com>
To: lachlan@sgi.com
Cc: xfs@oss.sgi.com
Subject: Re: review: propogate return codes from flush routines
Date: Tue, 05 Sep 2006 17:54:08 +1000 [thread overview]
Message-ID: <1157442848.5844.38.camel@localhost.localdomain> (raw)
In-Reply-To: <44FC0D0F.60403@sgi.com>
[-- Attachment #1: Type: text/plain, Size: 1184 bytes --]
On Mon, 2006-09-04 at 12:25 +0100, Lachlan McIlroy wrote:
> Here's a patch to handle error return values in fs_flush_pages and
> fs_flushinval_pages. It changes the prototype of fs_flushinval_pages
> so we can propogate the errors and handle them at higher layers. I also
> modified xfs_itruncate_start so that it could propogate the error further.
IMHO this is always a good idea. Although I guess the only concern can
be getting the right error back (and a useful one).
> The motivation behind this change was the recent BUG reported due to a
> direct I/O read trying to write to delayed alloc extents. While the exact
> cause of this problem is not known it is possible that fs_flushinval_pages
> ignored an error while flushing, truncated the pages on the file anyway,
> and failed to convert all delayed alloc extents.
from a quick look the patch seems to do as advertised.
i probably just haven't looked hard enough - but I'm assuming the layers
higher up deal with the error and: report to user, write log message or
something if there's a really catastrophic error?
--
Stewart Smith (stewart@flamingspork.com)
http://www.flamingspork.com/
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]
next prev parent reply other threads:[~2006-09-05 7:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-04 11:25 review: propogate return codes from flush routines Lachlan McIlroy
2006-09-05 7:54 ` Stewart Smith [this message]
2006-09-05 9:46 ` Lachlan McIlroy
2006-09-06 9:04 ` Stewart Smith
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=1157442848.5844.38.camel@localhost.localdomain \
--to=stewart@flamingspork.com \
--cc=lachlan@sgi.com \
--cc=xfs@oss.sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox