mirror of
https://github.com/ceph/ceph
synced 2025-02-20 09:27:35 +00:00
filestore: return negative error code if open fails
ENOENT was being treated as a read of length 2, causing #890. Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
This commit is contained in:
parent
3f442f0686
commit
a70b5a81a5
@ -2152,7 +2152,7 @@ int FileStore::read(coll_t cid, const sobject_t& oid,
|
||||
int err = errno;
|
||||
dout(10) << "FileStore::read(" << fn << "): open error "
|
||||
<< cpp_strerror(err) << dendl;
|
||||
return err;
|
||||
return -err;
|
||||
}
|
||||
|
||||
if (len == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user