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: v15.1.0~1360^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bd20464d747a7357639dfd5c5ec1f34b2f88d378;p=ceph-ci.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 --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 64f4bc98766..01c1a50a06a 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -8915,7 +8915,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) {