]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
FileJournal::_open: return the correct error code 7638/head
authorAlexey Sheplyakov <asheplyakov@mirantis.com>
Fri, 12 Feb 2016 17:56:02 +0000 (20:56 +0300)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Mon, 15 Feb 2016 10:58:03 +0000 (13:58 +0300)
commit7469ef3cba436299692fabef91afaf6f6d6d56c2
tree29b9a2d382fe8425c93ec8a2885bcf818430d659
parent9540769da47f219d61a6ff5de58fa7975f38ecf7
FileJournal::_open: return the correct error code

.. and print a more helpful error message. Unlike most of IO routines
(open, creat, write*, read, close) io_setup does NOT set the errno,
instead it returns the negated error code. Also -EAGAIN indicates
the limit of available events has been exceeded.

Signed-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
src/os/filestore/FileJournal.cc