From: Andi Kleen <ak@suse.de>
To: Alexandre Ratchov <alexandre.ratchov@bull.net>
Cc: Theodore Ts'o <tytso@mit.edu>, linux-ext4@vger.kernel.org
Subject: Re: ext4 compat flag assignments
Date: 28 Sep 2006 22:29:43 +0200 [thread overview]
Message-ID: <p73u02rivk8.fsf@verdi.suse.de> (raw)
In-Reply-To: <20060928085515.GC27104@openx1.frec.bull.fr>
Alexandre Ratchov <alexandre.ratchov@bull.net> writes:
> here is a list of fields we plan to use for the 64bit support, they must be
> zero on file systems without the EXT4_FEATURE_INCOMPAT_64BIT.
>
> struct ext4_super_block
> {
> /* at offset 0xfe */
> __le32 s_desc_size; /* Group descriptor size */
> /* at offset 0x150 */
> __le32 s_blocks_count_hi; /* Blocks count */
> __le32 s_r_blocks_count_hi; /* Reserved blocks count */
> __le32 s_free_blocks_count_hi; /* Free blocks count */
> __le32 s_jnl_blocks_hi[17]; /* Backup of the journal inode */
> };
>
> struct ext4_group_desc
> {
> /* at offset 0x20 */
> __le32 bg_block_bitmap; /* Blocks bitmap block hi bits */
> __le32 bg_inode_bitmap; /* Inodes bitmap block hi bits */
> __le32 bg_inode_table; /* Inodes table block hi bits */
> __le16 bg_free_blocks_count; /* Free blocks count hi bits */
> __le16 bg_free_inodes_count; /* Free inodes count hi bits */
> __le16 bg_used_dirs_count; /* Directories count hi bits */
> };
>
> basically, we make 64bit all block numbers and we double the size of all
> xxx_count in the block group descriptor.
When you do this have you considered at least reserving fields in the
new 64bit indirect blocks for checksums for each block?
IMHO it would be a great advantage to checksum all metadata
(as demonstrated by ZFS) and CPU cycles are cheap enough now that it is
basically free.
The checksums could be different feature flags, but it would be useful
to reserve space in any new format. 16 byte free on each block should be enough.
-Andi
next prev parent reply other threads:[~2006-09-28 20:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-22 9:15 ext4 compat flag assignments Andreas Dilger
2006-09-28 8:55 ` Alexandre Ratchov
2006-09-28 20:29 ` Andi Kleen [this message]
2006-09-28 22:41 ` Andreas Dilger
2006-09-28 23:06 ` Andi Kleen
2006-10-02 4:34 ` Andreas Dilger
2006-09-28 23:06 ` Andreas Dilger
2006-10-04 20:04 ` Theodore Tso
2006-10-05 0:19 ` Andreas Dilger
2006-10-05 2:02 ` Theodore Tso
2006-10-06 13:33 ` Valerie Clement
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=p73u02rivk8.fsf@verdi.suse.de \
--to=ak@suse.de \
--cc=alexandre.ratchov@bull.net \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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