From 14c6f0de9b6989b94836e2b9f145159ea15b881d Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Tue, 7 Aug 2018 16:57:00 +0200 Subject: [PATCH] OSD: translate the error result Signed-off-by: Willem Jan Withagen --- src/os/filestore/FileJournal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/filestore/FileJournal.cc b/src/os/filestore/FileJournal.cc index aaa707ad617c..5a2d6c72f1c1 100644 --- a/src/os/filestore/FileJournal.cc +++ b/src/os/filestore/FileJournal.cc @@ -1901,7 +1901,7 @@ void FileJournal::wrap_read_bl( int r = safe_read_exact(fd, bp.c_str(), len); if (r) { derr << "FileJournal::wrap_read_bl: safe_read_exact " << pos << "~" << len << " returned " - << r << dendl; + << cpp_strerror(r) << dendl; ceph_abort(); } bl->push_back(std::move(bp)); -- 2.47.3