]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
FileJournal: fix posix_fallocate error handling
authorNoah Watkins <noahwatkins@gmail.com>
Sun, 21 Jul 2013 17:54:00 +0000 (10:54 -0700)
committerSage Weil <sage@inktank.com>
Mon, 22 Jul 2013 18:43:01 +0000 (11:43 -0700)
commit58c78dbaf357def4c7bf6fb95a0248a1ccf6c3c6
tree57fedc53ead43df972be9d9e13eb38cf11e07eab
parent0897d3a820ec182ebd74100a370dbadab50de84f
FileJournal: fix posix_fallocate error handling

From the man page for posix_fallocate:

    posix_fallocate() returns zero on success, or an error
    number on failure.  Note that errno is not set.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/os/FileJournal.cc