]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: don't ceph_abort on bad llseek whence value 30766/head
authorJeff Layton <jlayton@redhat.com>
Mon, 16 Sep 2019 15:00:34 +0000 (11:00 -0400)
committerNathan Cutler <ncutler@suse.com>
Mon, 7 Oct 2019 18:56:31 +0000 (20:56 +0200)
There is no need to abort in this case. Just return -EINVAL.

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

src/client/Client.cc

index cef80244d60b459823bd6180e7cfe7bc25061d39..f9e04e5ca8c0a4767377b190291327dd401d6ec7 100644 (file)
@@ -8874,7 +8874,8 @@ loff_t Client::_lseek(Fh *f, loff_t offset, int whence)
     break;
 
   default:
-    ceph_abort();
+    ldout(cct, 1) << __func__ << ": invalid whence value " << whence << dendl;
+    return -EINVAL;
   }
 
   if (pos < 0) {