patch-2.4.0-test5 linux/fs/ext2/file.c
Next file: linux/fs/ext2/inode.c
Previous file: linux/fs/dquot.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Tue Jul 18 22:56:27 2000
- Orig file:
v2.4.0-test4/linux/fs/ext2/file.c
- Orig date:
Fri Jul 14 12:12:14 2000
diff -u --recursive --new-file v2.4.0-test4/linux/fs/ext2/file.c linux/fs/ext2/file.c
@@ -90,7 +90,8 @@
*/
static int ext2_open_file (struct inode * inode, struct file * filp)
{
- if (inode->u.ext2_i.i_high_size && !(filp->f_flags & O_LARGEFILE))
+ if (!(filp->f_flags & O_LARGEFILE) &&
+ inode->i_size > 0x7FFFFFFFLL)
return -EFBIG;
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)