| To: | Timothy Shimmin <tes@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches |
| From: | David Chinner <dgc@xxxxxxx> |
| Date: | Fri, 17 Nov 2006 13:39:46 +1100 |
| Cc: | Eric Sandeen <sandeen@xxxxxxxxxxx>, xfs@xxxxxxxxxxx |
| In-reply-to: | <BB70F203E29C2D37A2F727C8@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| References: | <455CB54F.8080901@xxxxxxxxxxx> <BB70F203E29C2D37A2F727C8@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.2.1i |
On Fri, Nov 17, 2006 at 11:08:40AM +1000, Timothy Shimmin wrote: > Hi Eric, > > > Well there is a bug in the sb endian translation code then or its setup. > All the field accesses should be correct, no? The problem is the size of the variable translated in xfs_xlatesb() is the offset of the next field minus the offset of the current field. With the last filed of the structure, it ends up being the size of the structure minus the offset of the field. On a 32 bit machine, the structure is 4 bytes larger that the offset of the feature2 field. On 64 bit machine, the strucutre is 8 bytes larger than the offset of the features2 field, so it translates is as though it was a 64 bit field, not a 32 bit field..... Cheers, Dave. -- Dave Chinner Principal Engineer SGI Australian Software Group |
| Previous by Date: | Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches, Timothy Shimmin |
|---|---|
| Next by Date: | Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches, Timothy Shimmin |
| Previous by Thread: | Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches, Timothy Shimmin |
| Next by Thread: | Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches, Timothy Shimmin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |