Re: 2G file size limitation question

Jakub Jelinek (jj@sunsite.ms.mff.cuni.cz)
Sun, 11 Jan 1998 00:04:03 +0100 (MET)


> __u32 i_block[EXT2_N_BLOCKS];/* Pointers to blocks */
> __u32 i_version; /* File version (for NFS) */
> __u32 i_file_acl; /* File ACL */
> union {
> __u32 i_dir_acl; /* Directory ACL */
> __u32 i_size_high; /* high 32 bits of 64-bit size */
> } u2;
> __u32 i_reserved1;
> __u16 i_reserved2;

So one can choose either ACLs or 64bit sizes? That's very bad...

> /*
> * In case people like incompatible change...
> * This is cleaner but maybe not worth the trouble.
> */
> struct ext3_inode {
> __u16 i_mode; /* File mode */
> __u16 i_version; /* File version (for NFS) */
> __u32 i_flags; /* File flags */
> __u32 i_gid; /* Group Id */
> __u32 i_uid; /* Owner Uid */
> __u32 i_atime; /* Access time (damn POSIX) */
If you do this, then several fields should be upgraded, like a/m/ctime to
__u64, etc.

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.0.32 on a sparc machine (291.64 BogoMips).
___________________________________________________________________