]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: Fix for #3490 and config option to test
authorSam Lang <sam.lang@inktank.com>
Thu, 29 Nov 2012 18:19:51 +0000 (12:19 -0600)
committerSage Weil <sage@inktank.com>
Thu, 29 Nov 2012 23:04:06 +0000 (15:04 -0800)
commit7d27e2e95c8cb1bb3f5950ff224e49bfd353db9c
tree59a60430fce5b03402710eb65e8091dd6116609c
parentf9056f5bd7b2027b74269db169852dd7b915475c
client:  Fix for #3490 and config option to test

If the mds revokes our cache cap, and we follow
the _read_sync() path, on a zero-byte file the
osd returns ENOENT.  We need to replace ENOENT
with a return of 0 in this case.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
src/client/Client.cc
src/common/config_opts.h