]> git.proxmox.com Git - mirror_ubuntu-impish-kernel.git/commit
UBUNTU: SAUCE: shiftfs: use separate llseek method for directories
authorChristian Brauner <christian@brauner.io>
Tue, 16 Apr 2019 16:29:00 +0000 (18:29 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 28 Jun 2021 06:03:47 +0000 (08:03 +0200)
commit677392584e4d8d36c73a9edf7effb51f0a15196f
tree9a0d949cedaa921c20dddfd065d341a084976db3
parent9bf0cd78bc7574bf76ff9fa1b9ce2e7b44627736
UBUNTU: SAUCE: shiftfs: use separate llseek method for directories

BugLink: https://bugs.launchpad.net/bugs/1824812
Give shiftfs it's own proper llseek method for directories.

Before this commit we used to rely on an llseek method that was
targeted for regular files for both directories and regular files.
However, the realfile's f_pos was not correctly handled when userspace
called lseek(2) on a shiftfs directory file. Give directories their
own llseek operation so that seeking on a directory file is properly
supported.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/shiftfs.c