| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | Re: [PATCH] fix dir2 shortform structures on ARM old ABI |
| From: | "Andre Draszik" <xfs@xxxxxxxxxx> |
| Date: | Tue, 18 Mar 2008 23:31:27 +0000 |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=RCrD73N3hV+gVEZAG895XMjNAMXMVk2/zRFzUtb/eqs=; b=uH/BCIMyuljB5JalpDj7yEZVXkZQLpUuO2302Lg7cX4NeUQESuqe+vQh30ldD6tAt9TeG5WKfpcvmcEKs/LGUTAes5/izevU2KehC0+aX3NCxK1VmA6sKE4Me6fOyOB4llgEQh8nFIBgVZlQYAYV+X9u2qQGh92ssGfpJ1SSGvI= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=oN/CGN8bjdPOJrFNPvi5H8/eJ6Y8PZZAlXX2CuQEElW8sP/yNS0Al8JckR8Akp/nSW0e7wedqk4RE5FBRlsMyRfDDM9JAhQvXX0CBQwannPrKWgdw8Dvt0EEJAJZDen8YKaECp6ncNIWE8bkoZVVh4UjcZVH9L4IUK2uDh94t4g= |
| Sender: | xfs-bounce@xxxxxxxxxxx |
Hi, (I just subscribed, so I can't reply correctly :-( In fact,, the last two evenings I spent making XFS work on arm eabi, where things are much better than with the old API, but still XFS won't work out of the box. So, Eric, if you go for the #if defined(__arm__) && !defined(__ARM_EABI__) approach, arm eabi will still be broken. EABI basically behaves like other 'normal' arches/abis, but sometimes structures get padded to have a size of a multiple of 8, i.e. padding is added at the end of the struct, which as far as I can see for now affects 5 structs: xfs_dir2_data_entry_t, xfs_dinode_t, xfs_sb_t, xfs_dsb_t, and xfs_log_item_t I must say, I like Jeff's approach of explicitly telling gcc about alignment much better :-) It makes it a) much easier to find structs that are in fact representations of on-disk data and thus might need tweaking, and b) as somebody already said you fix such problems once and forever. E.g. for me as an absolute outsider, it was quite time consuming finding out which structs are actually on-disk. That said, Jeff, you mentioned that your changes don't work yet completely - could this be because (at least from the comments) struct xfs_sb needs to match struct xfs_dsb and you only change xfs_dsb? Cheers, Andre' |
| Previous by Date: | Re: [dm-crypt] INFO: task mount:11202 blocked for more than 120 seconds, Christian Kujau |
|---|---|
| Next by Date: | Re: [PATCH] fix dir2 shortform structures on ARM old ABI, Andre Draszik |
| Previous by Thread: | Re: [PATCH] fix dir2 shortform structures on ARM old ABI, Eric Sandeen |
| Next by Thread: | Re: [PATCH] fix dir2 shortform structures on ARM old ABI, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |