Re: Should block-number-in-file vars be using blkcnt_t?

"Takashi Sato" <[email protected]> Tue, 22 Aug 2006 20:29:25 +0900
Newsgroups gmane.comp.file-systems.ext2.devel
Message-ID <[email protected]>
Hi,

> Andreas Dilger wrote:
>> On Aug 21, 2006  10:31 -0500, Eric Sandeen wrote:
>>> The blkcnt_t type recently went into to 2.6 to handle "large single
>>> files" as a configuration option; i.e. more than 32 bits of blocks in a
>>> file offset.  Right now this seems to be used only in the inode's
>>> i_blocks field.  Looking over Takashi Sato's patches to increase the
>>> maximum size of a file in ext3, I wonder if it might be a good idea to
>>> start using blkcnt_t in ext3, wherever we are counting blocks in a file?
>>
>> I think Takashi also submitted a follow-on patch to introduce ext3_blkcnt
>> for this purpose.  It makes the code more clear as to what type of block
>> number is being used, and facilitates increasing this number.
>
> Ok, I can't find that patch... but I'm glad that you agree that a type
> makes sense here.
>
> Digging back through the archives I see that I'm re-inventing a few
> wheels here, trying to get things up to a full 32 bits.
>
> Can anyone summarize the status of the various patchsets which have been
> submitted for 2^32-1 -block filesystems?  What can I do to help get this
> finished up and committed?

AFAIK, the status is as follows.

- Basically, >8TB filesystem became available with Mingming's patches(*1)
  which add ext3_fsblk_t and ext3_grpblk_t on 2.6.18-rc1.
  However, the overflow problems on full 2^32-1 blocks filesystem
  remained.  (Eric caught these bugs.)

  *1:"extents and 48bit ext3" on Jun 9.

- I sent the patches(*2) which add ext3_fileblk_t for file relative offset.
  However, they have not been merged into Linus's tree.
  I'm fixing them on top of the latest Mingming's patches(*3) and
  re-send them soon.

  *2: "add ext3_fileblk_t for file relative offset" on Jun 28.
  *3: "extents and 48bit blk changes for ext4filesystem" on Aug 8.

Cheers, Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642