From bd20464d747a7357639dfd5c5ec1f34b2f88d378 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Mon, 16 Sep 2019 11:00:34 -0400 Subject: [PATCH] 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 --- src/client/Client.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.5