mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@clusterfs.com>
To: Goldwyn Rodrigues <goldwyn_r@myrealbox.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Breaking Ext3/VFS file size limit
Date: Wed, 9 Jun 2004 11:58:15 -0600	[thread overview]
Message-ID: <20040609175815.GI24042@schnapps.adilger.int> (raw)
In-Reply-To: <1086787280.98272bfcgoldwyn_r@myrealbox.com>

[-- Attachment #1: Type: text/plain, Size: 1481 bytes --]

On Jun 09, 2004  18:51 +0530, Goldwyn Rodrigues wrote:
> I am building a custom kernel which could break the max file size limit from
> 2TB. I found the dependancy on number of 512-byte blocks, as i_blocks.
> 
> i_blocks is a 32 bit unsigned long in structures struct inode and
> struct ext3_inode. I changed it to unsigned long long in struct inode (in
> fs.h) and used a reserved field in ext3_inode to carry the higher order bits.

Just FYI, this should all be made conditional upon CONFIG_LBD so that the
majority of users who don't have/need such large files do not consume excess
space in their inodes.

> Also changed a checking function which returns the maximun possible size
> as 2TB.

Again FYI, the next limit for ext3 is 4TB for 4kB block size when you run out
of space for indirect blocks.

> My question is:
> Would changing the data type of i_blocks in struct inode (in fs.h) result
> in any breakdowns. It could happen if the inode structure is directly mapped
> to some other structure.

If you don't also fix the stat code you won't be able to stat such files.

> PS: I am posting for the first time, so please forgive me (but do tell me,
> personally if possible) if I commit a mistake.

It is usually good to include a patch with any discussion (diff -up format).

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://members.shaw.ca/adilger/                 http://members.shaw.ca/golinux/


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2004-06-09 17:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-09 13:21 Goldwyn Rodrigues
2004-06-09 17:58 ` Andreas Dilger [this message]

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=20040609175815.GI24042@schnapps.adilger.int \
    --to=adilger@clusterfs.com \
    --cc=goldwyn_r@myrealbox.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®