From: Wolfgang Illmeyer <wolfgang@illmeyer.com>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, trivial@kernel.org, jdike@addtoit.com
Subject: [PATCH 001/001] hostfs: set maximum filesize in superblock for proper LFS support
Date: Mon, 29 Jun 2009 23:59:01 +0200 [thread overview]
Message-ID: <200906292359.01834.wolfgang@illmeyer.com> (raw)
From: Wolfgang Illmeyer <wolfgang@illmeyer.com>
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.
Signed-off-by: Wolfgang Illmeyer <wolfgang@illmeyer.com>
---
This patch applies against linux-2.6.30. It fixes
http://bugzilla.kernel.org/show_bug.cgi?id=13531
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)
reply other threads:[~2009-06-29 22:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200906292359.01834.wolfgang@illmeyer.com \
--to=wolfgang@illmeyer.com \
--cc=akpm@linux-foundation.org \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox