From: Jeff Layton Date: Mon, 16 Sep 2019 15:00:34 +0000 (-0400) Subject: client: don't ceph_abort on bad llseek whence value X-Git-Tag: v14.2.8~20^2~64^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8f4f4f9a33cac6ef628a3c81de78e918e6c688cc;p=ceph.git client: don't ceph_abort on bad llseek whence value There is no need to abort in this case. Just return -EINVAL. Fixes: https://tracker.ceph.com/issues/41871 Signed-off-by: Jeff Layton (cherry picked from commit bd20464d747a7357639dfd5c5ec1f34b2f88d378) --- diff --git a/src/client/Client.cc b/src/client/Client.cc index cef80244d60..f9e04e5ca8c 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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) {