]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fix error handling in lseek SEEK_HOLE/SEEK_DATA cases 34308/head
authorJeff Layton <jlayton@redhat.com>
Thu, 6 Feb 2020 17:00:07 +0000 (12:00 -0500)
committerVicente Cheng <freeze.bilsted@gmail.com>
Thu, 16 Apr 2020 06:14:04 +0000 (06:14 +0000)
commitaa40202fcd080ba3e3dda828cd4f9562ac3b4611
treeef3b8103a2abefd930e4e4c5e28286e96d185c7b
parentc0616be1c9ee3edc478ff960311bae7abb8a66af
client: fix error handling in lseek SEEK_HOLE/SEEK_DATA cases

The error handling here looks quite wrong. If the offset represents
an area outside the file, then we want to just return -ENXIO
immediately.

Fixes: https://tracker.ceph.com/issues/44021
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 2ca8db71364698e05c3a6ac9a5aa4da5421a35bc)

Conflicts:
src/client/Client.cc
  - minor modification for nautilus code flow
src/client/Client.cc