]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: don't ceph_abort on bad llseek whence value
authorJeff Layton <jlayton@redhat.com>
Mon, 16 Sep 2019 15:00:34 +0000 (11:00 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 25 Sep 2019 19:59:49 +0000 (15:59 -0400)
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>
src/client/Client.cc

index 64f4bc98766d0a2c274c73e27794d05a8c300eeb..01c1a50a06aec6761e8d5a6a4313570d04d6bf38 100644 (file)
@@ -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) {