From: Timothy Shimmin <tes@sgi.com>
To: Nathan Scott <nathans@sgi.com>
Cc: xfs@oss.sgi.com
Subject: Re: review: fix bulkstat error detection logic
Date: Fri, 28 Jul 2006 15:40:35 +1000 [thread overview]
Message-ID: <44C9A353.1050702@sgi.com> (raw)
In-Reply-To: <20060726102406.I2118045@wobbly.melbourne.sgi.com>
Nathan Scott wrote:
> Hi,
>
> An earlier patch to remove bulkstat verbosity in debug kernels
> changed the xfs_itobp logic slightly, such that we no longer do
> the first stage of buffer checking there. Turns out this isn't
> the right fix, we need to do that check still, and pass out the
> error code to bulkstat still, otherwise we either trip up logic
> in later debug code, or pass out success incorrectly.
>
> This fixes that up, and is the last bulkstat change I have for
> awhile. :) Its error handling is correct once more, its a fair
> bit quicker, and no more debug-kernel console spam - hooray!
>
> cheers.
>
Looks reasonable.
So you still do the inode buffer validation but we don't print out
a corruption error msg and we return EINVAL instead of EFSCORRUPTED.
Can we not be bulkstat'ing over inodes with reasonable numbers/locations but
the inode data on disk is just corrupted?
(I missed looking at the original patch)
(Interesting how previously you set ni to 0 in the XFS_IMAP_BULKSTAT
case and yet in the loop which would then never iterate (0<0=F),
you test for XFS_IMAP_BULKSTAT :)
--Tim
next prev parent reply other threads:[~2006-07-28 5:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-26 0:24 review: fix bulkstat error detection logic Nathan Scott
2006-07-28 5:40 ` Timothy Shimmin [this message]
2006-07-28 5:45 ` Nathan Scott
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=44C9A353.1050702@sgi.com \
--to=tes@sgi.com \
--cc=nathans@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