Skip to content

Commit

Permalink
hostfs: set maximum filesize in superblock for proper LFS support
Browse files Browse the repository at this point in the history
Maximum file size for hostfs mounts defaults to 2GB, so bigger files cannot be
read/written through hostfs. This patch initializes the maximum file size to
MAX_LFS_SIZE.

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=13531

Signed-off-by: Wolfgang Illmeyer <[email protected]>
Cc: Jeff Dike <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
escitalopram authored and torvalds committed Jul 1, 2009
1 parent 8516a50 commit 752fa51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/hostfs/hostfs_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,7 @@ static int hostfs_fill_sb_common(struct super_block *sb, void *d, int silent)
sb->s_blocksize_bits = 10;
sb->s_magic = HOSTFS_SUPER_MAGIC;
sb->s_op = &hostfs_sbops;
sb->s_maxbytes = MAX_LFS_FILESIZE;

/* NULL is printed as <NULL> by sprintf: avoid that. */
if (req_root == NULL)
Expand Down

0 comments on commit 752fa51

Please sign in to comment.