Staging
v0.5.1
https://github.com/torvalds/linux
Revision b485275f1aca8a9da37fd35e4fad673935e827da authored by Marc Dionne on 21 November 2019, 15:37:26 UTC, committed by Linus Torvalds on 22 November 2019, 22:19:26 UTC
By default s_maxbytes is set to MAX_NON_LFS, which limits the usable
file size to 2GB, enforced by the vfs.

Commit b9b1f8d5930a ("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: b9b1f8d5930a ("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>
1 parent cd34070
History
Tip revision: b485275f1aca8a9da37fd35e4fad673935e827da authored by Marc Dionne on 21 November 2019, 15:37:26 UTC
afs: Fix large file support
Tip revision: b485275
File Mode Size
include
.gitignore -rw-r--r-- 143 bytes
Kconfig -rw-r--r-- 7.9 KB
Makefile -rw-r--r-- 2.2 KB
gen_init_cpio.c -rw-r--r-- 12.8 KB
gen_initramfs_list.sh -rwxr-xr-x 8.0 KB
initramfs_data.S -rw-r--r-- 1.3 KB

back to top