Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hostfs: set maximum filesize in superblock for proper LFS support

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 <wolfgang@illmeyer.com>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Wolfgang Illmeyer and committed by
Linus Torvalds
752fa51e 8516a500

+1
+1
fs/hostfs/hostfs_kern.c
··· 972 972 sb->s_blocksize_bits = 10; 973 973 sb->s_magic = HOSTFS_SUPER_MAGIC; 974 974 sb->s_op = &hostfs_sbops; 975 + sb->s_maxbytes = MAX_LFS_FILESIZE; 975 976 976 977 /* NULL is printed as <NULL> by sprintf: avoid that. */ 977 978 if (req_root == NULL)