Skip to contentSkip to conversation

New Defects reported by Coverity Scan for ceph

DISCUSSION [email protected] 1 participant 1 message Dec 26, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

Please find the latest report on new defect(s) introduced to ceph found with Coverity Scan.

1 new defect(s) introduced to ceph found with Coverity Scan.
1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)

** CID 1260469: Unchecked return value from library (CHECKED_RETURN) /os/FileJournal.cc: 1083 in FileJournal::do_write(ceph::buffer::list &)()

________________________________________________________________________________________________________
*** CID 1260469: Unchecked return value from library (CHECKED_RETURN) /os/FileJournal.cc: 1083 in FileJournal::do_write(ceph::buffer::list &)()
1077 ::fsync(fd);
1078 #else
1079 ::fdatasync(fd);
1080 #endif
1081 #ifdef HAVE_POSIX_FADVISE
1082 if (g_conf->filestore_fadvise)

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

CID 1260469: Unchecked return value from library (CHECKED_RETURN)
Calling "posix_fadvise(this->fd, 0L, 0L, 4)" without checking return value. This library function may fail and return an error code.

1083 posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED);
1084 #endif
1085 }
1086
1087 utime_t lat = ceph_clock_now(g_ceph_context) - from;
1088 dout(20) << "do_write latency " << lat << dendl;

________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, http://scan.coverity.com/projects/25?tab=overview

To manage Coverity Scan email notifications for "[email protected]", click http://scan.coverity.com/subscriptions/edit?email=ceph-devel%40vger.kernel.org&token=018084d671e3cc89d00dd2ccb7eb849c .