lkml.org 
[lkml]   [2004]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ramfs lfs limit

* Andrea Arcangeli <andrea@suse.de> wrote:

> Hi Andrew,
>
> this fixes the 2G limit on ramfs
>
> --- sles/fs/ramfs/inode.c.~1~ 2003-10-31 05:54:29.000000000 +0100
> +++ sles/fs/ramfs/inode.c 2004-05-21 07:55:07.394369104 +0200
> @@ -181,6 +181,7 @@ static int ramfs_fill_super(struct super
> struct inode * inode;
> struct dentry * root;
>
> + sb->s_maxbytes = MAX_LFS_FILESIZE;
> sb->s_blocksize = PAGE_CACHE_SIZE;
> sb->s_blocksize_bits = PAGE_CACHE_SHIFT;
> sb->s_magic = RAMFS_MAGIC;

yep - fixed this for RHEL3 half a year ago but forgot about it. It works
well, people are using multi-GB ramfs instances without problems.

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.035 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site