From: Andreas Dilger <adilger@clusterfs.com>
To: sho@tnes.nec.co.jp
Cc: "ext2-devel@lists.sourceforge.net"
<ext2-devel@lists.sourceforge.net>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [Ext2-devel] [PATCH 1/4] ext2/3: Extends the max file size(ext2 in kernel)
Date: Mon, 20 Mar 2006 00:20:37 -0700 [thread overview]
Message-ID: <20060320072037.GD30801@schatzie.adilger.int> (raw)
In-Reply-To: <20060318220130sho@rifu.tnes.nec.co.jp>
On Mar 18, 2006 22:01 +0900, sho@tnes.nec.co.jp wrote:
> The unit of ext2/ext3_inode.i_blocks is sector(512B) and the variable
> size is 4bytes, so it limits the max file size to 2TB.
> I found that i_blocks is always counted with rounding up to the file
> system block size and does not have fractions. So we can change the
> unit of ext2/ext3_inode.i_blocks from sector to block size.
> This change extends the maximum file size as below.
>
> - Add new compatible flag "EXT2_FEATURE_INCOMPAT_LARGE_BLOCK".
> It indicates that the file size is extended.
>
> - If the flag is set in the super block, ext2_inode.i_blocks is
> translated into the number of sectors and set to i_blocks of VFS
> inode. And, if not, ext2_inode.i_blocks is passed to i_blocks
> of VFS inode as it is.
>
> - If the flag is set, the limit of the max file size defined in
> ext2_max_size() is set to block size * 2G-1(2^31-1).
Instead of breaking all filesystems that need to create large files,
the patch should instead set "i_flags | EXT2_LARGEBLK_FL" only on inodes
that are larger than 2TB and use "blocksize" i_blocks on those files.
This preserves compatibility with existing filesystems and doesn't
impose any breakage opon an existing filesystem for anyone who wants
to use this feature.
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
next prev parent reply other threads:[~2006-03-20 7:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-18 13:01 sho
2006-03-20 7:20 ` Andreas Dilger [this message]
2006-03-20 12:21 ` [Ext2-devel] " Takashi Sato
2006-03-20 19:34 ` Andreas Dilger
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=20060320072037.GD30801@schatzie.adilger.int \
--to=adilger@clusterfs.com \
--cc=ext2-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=sho@tnes.nec.co.jp \
/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
all inboxes | Powered by JetHome®