]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/chain_xattr: handle read on chnk-aligned xattr
authorSage Weil <sage@redhat.com>
Wed, 18 Mar 2015 20:49:20 +0000 (13:49 -0700)
committerSage Weil <sage@redhat.com>
Fri, 15 May 2015 22:56:57 +0000 (18:56 -0400)
commit8614dcebf384b74b283cd352001a65fa26ba925c
tree41409bae78e864996ecd00c26b916208eb5c0b37
parent3368a9b79c6d1e6528ebf44e5ad23770bb4f7d88
os/chain_xattr: handle read on chnk-aligned xattr

If we wrote an xattr that was a multiple of a chunk, we will try to read
the next chunk and get ENODATA.  If that happens bail out of the loop and
assume we've read the whole thing.

Backport: hammer, firefly
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/chain_xattr.cc
src/test/objectstore/chain_xattr.cc