linux-stable/fs/afs
Marc Dionne d05ad8ba87 afs: Fix large file support
[ Upstream commit b485275f1a ]

By default s_maxbytes is set to MAX_NON_LFS, which limits the usable
file size to 2GB, enforced by the vfs.

Commit b9b1f8d593 ("AFS: write support fixes") added support for the
64-bit fetch and store server operations, but did not change this value.
As a result, attempts to write past the 2G mark result in EFBIG errors:

 $ dd if=/dev/zero of=foo bs=1M count=1 seek=2048
 dd: error writing 'foo': File too large

Set s_maxbytes to MAX_LFS_FILESIZE.

Fixes: b9b1f8d593 ("AFS: write support fixes")
Signed-off-by: Marc Dionne <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-29 10:24:34 +01:00
..
Kconfig fs/afs: remove depends on CONFIG_EXPERIMENTAL 2013-01-21 14:39:04 -08:00
Makefile
afs.h afs: Support interacting with multiple user namespaces 2013-02-13 06:00:51 -08:00
afs_cm.h
afs_fs.h
afs_vl.h AFS: Fix silly characters in a comment 2011-07-20 20:48:03 -04:00
cache.c
callback.c afs: Migrate vlocation fields to 64-bit 2017-12-20 10:07:24 +01:00
cell.c FS-Cache: Provide the ability to enable/disable cookies 2013-09-27 18:40:25 +01:00
cmservice.c afs: Deal with an empty callback array 2017-12-20 10:07:24 +01:00
dir.c fs: rename "rename2" i_op to "rename" 2016-09-27 11:03:58 +02:00
file.c afs: Flush outstanding writes when an fd is closed 2017-12-20 10:07:24 +01:00
flock.c fs/afs/flock: Remove deprecated create_singlethread_workqueue 2016-09-04 21:41:39 +01:00
fsclient.c afs: Populate and use client modification time 2017-12-20 10:07:24 +01:00
inode.c afs: Populate and use client modification time 2017-12-20 10:07:24 +01:00
internal.h afs: Prevent callback expiry timer overflow 2017-12-20 10:07:24 +01:00
main.c afs: Need linux/random.h 2016-08-30 16:07:53 +01:00
misc.c afs: Invalid op ID should abort with RXGEN_OPCODE 2017-12-20 10:07:24 +01:00
mntpt.c fs: Better permission checking for submounts 2017-03-15 10:02:44 +08:00
netdevices.c
proc.c convert a bunch of open-coded instances of memdup_user_nul() 2016-01-04 10:26:58 -05:00
rxrpc.c afs: Fix abort on signal while waiting for call completion 2017-12-20 10:07:25 +01:00
security.c afs: Adjust mode bits processing 2017-12-20 10:07:24 +01:00
server.c afs: Migrate vlocation fields to 64-bit 2017-12-20 10:07:24 +01:00
super.c afs: Fix large file support 2020-01-29 10:24:34 +01:00
vlclient.c rxrpc: Don't expose skbs to in-kernel users [ver #2] 2016-09-01 16:43:27 -07:00
vlocation.c afs: Migrate vlocation fields to 64-bit 2017-12-20 10:07:24 +01:00
vnode.c
volume.c fs: introduce f_op->mmap_capabilities for nommu mmap support 2015-01-20 14:02:58 -07:00
write.c afs: Fix afs_kill_pages() 2017-12-20 10:07:25 +01:00