]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fix error handling in lseek SEEK_HOLE/SEEK_DATA cases
authorJeff Layton <jlayton@redhat.com>
Thu, 6 Feb 2020 17:00:07 +0000 (12:00 -0500)
committerJeff Layton <jlayton@redhat.com>
Mon, 24 Feb 2020 19:39:12 +0000 (11:39 -0800)
commit2ca8db71364698e05c3a6ac9a5aa4da5421a35bc
tree3abfaf40bb17c45893c2a125008adf0c80b8b9a9
parentd2b4759d54ce4437ac89b2c8cdbdd0e4b912e815
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>
src/client/Client.cc