From f47999d7b339c764b891437f2aa71ac9f2021b71 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 (cherry picked from commit bd20464d747a7357639dfd5c5ec1f34b2f88d378) --- 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 7248547123e7b..e46b3f507702e 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -8731,7 +8731,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