Signed-off-by: Jim Schutt <[email protected]>
---
src/os/FileJournal.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc
index d1c92dc..2254720 100644
--- a/src/os/FileJournal.cc
+++ b/src/os/FileJournal.cc
@@ -945,9 +945,10 @@ void FileJournal::align_bl(off64_t pos, bufferlist& bl)
int FileJournal::write_bl(off64_t& pos, bufferlist& bl)
{
align_bl(pos, bl);
+ int ret;
- int ret = ::lseek64(fd, pos, SEEK_SET);
- if (ret) {
+ off64_t spos = ::lseek64(fd, pos, SEEK_SET);
+ if (spos < 0) {
ret = -errno;
derr << "FileJournal::write_bl : lseek64 failed " << cpp_strerror(ret) <<
dendl;
return ret;
--
1.7.8.2
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html