]> git.proxmox.com Git - mirror_ubuntu-impish-kernel.git/commit
UBUNTU: SAUCE: shiftfs: setup correct s_maxbytes limit
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 23 Oct 2019 12:22:28 +0000 (14:22 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 28 Jun 2021 06:03:49 +0000 (08:03 +0200)
commit1b4ef139b5ed46967706a07b46c6cad0ab77b326
tree0c61f731eeb1f36d51d7ca47d67d4eb837cd6fc9
parentb317c842ceecceed0108faf5bfbed0ed741c7912
UBUNTU: SAUCE: shiftfs: setup correct s_maxbytes limit

BugLink: https://bugs.launchpad.net/bugs/1849482
Set the s_maxbytes limit to MAX_LFS_FILESIZE.
Currently shiftfs limits the maximum size for fallocate() needlessly
causing calls such as fallocate --length 2GB ./file to fail. This
limitation is arbitrary since it's not caused by the underlay but
rather by shiftfs itself capping the s_maxbytes. This causes bugs such
as the one reported in [1].

[1]: https://github.com/lxc/lxd/issues/6333
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Acked-by: Connor Kuehl <connor.kuehl@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/shiftfs.c