[lkml]   [2009]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 001/001] hostfs: set maximum filesize in superblock for proper LFS support
From: Wolfgang Illmeyer <>

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
Signed-off-by: Wolfgang Illmeyer <>
This patch applies against linux-2.6.30. It fixes
It is a revamped version of the patch I attached to the bug, using additional
input from Andrew Morton (thanks). This is my first patch for the kernel, I
hope I didn't break too many rules ;)

For any feedback from the mailing list please add me to "To" or CC me - I'm
not on the list.

--- fs/hostfs/hostfs_kern.c.orig 2009-06-29 23:13:05.000000000 +0200
+++ fs/hostfs/hostfs_kern.c 2009-06-29 23:14:43.000000000 +0200
@@ -972,6 +972,7 @@ static int hostfs_fill_sb_common(struct
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)

 \ /
  Last update: 2009-06-30 00:09    [W:0.023 / U:6.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site