Re: VFS 64-bit clean

chip@atlantic.net
Tue, 17 Feb 1998 13:59:28 -0500 (EST)


According to Rik van Riel:
> On Tue, 17 Feb 1998, Albert D. Cahalan wrote:
> > __u32 i_dtime; /* Deletion Time */
> after 2038, we'll need larger time.

No, that's an unsigned value, it'll go way beyond 2038.

> > __u32 i_blocks; /* Blocks count */
>
> The number of blocks needs to be higher when we have
> 64-bit sized files.

Good point.

> > union {
> > __u32 i_dir_acl; /* Directory ACL (directories only) */
> > __u32 i_size_high; /* high 32 bits of 64-bit size */
> > } u2;
>
> Looks good.

Considering the block problem, what about using 24 of those bits for
extending file size and eight for extending block count? Then you
have 58-bit size and 36-bit blocks, which is just right for 4K blocks.
(But I won't be extending the block count in my first revision.)

-- 
Chip Salzenberg                - a.k.a. -                <chip@pobox.com>
      "Hoist the failure sails, men!  We're goin' home!"  // MST3K

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu