Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches

Eric Sandeen
2006-11-16T22:56:35Z

David Chinner wrote:

> The real bug here was whoever removed the dummy field and did not
> replace that with a comment ot say that the xfs_sb strucutre needs
> to be padded to 64 bits to ensure translation worked properly
> on 64 bit systems.
>
> I'd prefer explicit padding (with warning comments) over packing
> the structure. Thoughts?

yes, I agree that explicit padding, and a comment about why it's there,
would be better.

I was thinking about this over lunch and meant to follow up, but then
figured out that the actual bug isn't because of this (it's broken as
well on x86), and kept trying to chase that :)

-Eric