From: Harvey Harrison <harvey.harrison@gmail.com>
To: David Chinner <dgc@sgi.com>
Cc: Christoph Hellwig <hch@lst.de>,
Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH-possible bugfix] xfs: ensure extents are read as be64
Date: Mon, 14 Apr 2008 22:03:23 -0700 [thread overview]
Message-ID: <1208235803.11920.62.camel@brick> (raw)
In-Reply-To: <20080415045803.GE103491721@sgi.com>
On Tue, 2008-04-15 at 14:58 +1000, David Chinner wrote:
> On Mon, Apr 14, 2008 at 08:28:51PM -0700, Harvey Harrison wrote:
> > The debug code reads the extents in cpu-order rather than BE. Make the
> > debug code match.
>
> xfs_validate_extents() is reading in-core extents which have already
> been byte-swapped when they were read into memory.
>
> FWIW, when changing anything to do with endian conversion, please
> ensure you run:
>
> $ make C=2 CHECKFLAGS="-D__CHECK_ENDIAN__"
>
> over the change. This change would introduce errors because:
>
> typedef struct xfs_bmbt_rec_host {
> __uint64_t l0, l1;
> } xfs_bmbt_rec_host_t;
>
> is not defined with __beXX types like the disk format version of this
> structure which is:
>
> typedef struct xfs_bmbt_rec_64 {
> __be64 l0, l1;
> } xfs_bmbt_rec_64_t;
>
Sorry for the noise, I didn't notice the (slightly) different struct
types. Just the very similar looking blocks in both functions.
My Bad,
Harvey
prev parent reply other threads:[~2008-04-15 5:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-15 3:28 [PATCH-possible bugfix] xfs: ensure extents are read as be64 Harvey Harrison
2008-04-15 4:58 ` David Chinner
2008-04-15 5:03 ` Harvey Harrison [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=1208235803.11920.62.camel@brick \
--to=harvey.harrison@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=dgc@sgi.com \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.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