Re: [RFC 0/13] extents and 48bit ext3
| Newsgroups | gmane.comp.file-systems.ext2.devel |
|---|---|
| Message-ID | <[email protected]> |
On disk extents format:
> /*
> * this is extent on-disk structure
> * it's used at the bottom of the tree
> */
> struct ext3_extent {
> __le32 ee_block; /* first logical block extent covers */
> __le16 ee_len; /* number of blocks covered by extent */
> __le16 ee_start_hi; /* high 16 bits of physical block */
> __le32 ee_start; /* low 32 bigs of physical block */
> };
If it's not already carved in stone, could I suggest
struct ext3_extent {
__le32 ee_block; /* first logical block extent covers */
__le32 ee_start; /* low 32 bigs of physical block */
__le16 ee_start_hi; /* high 16 bits of physical block */
__le16 ee_len; /* number of blocks covered by extent */
};
So that the 48_bit ee-start field is in consistent little-endian order
and can be accessed as a 64-bit field by popular 64-bit processors that
aren't too fussy about alignment?