]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/chain_xattr: handle read on chnk-aligned xattr 5367/head
authorSage Weil <sage@redhat.com>
Wed, 18 Mar 2015 20:49:20 +0000 (13:49 -0700)
committerLoic Dachary <ldachary@redhat.com>
Tue, 28 Jul 2015 12:46:57 +0000 (14:46 +0200)
commitfa194744fdaed13949bffb6f2b8a0fc420006e0b
treed9ef59000051d3c7681193dad716756687461e4b
parent45beb86423c3bd74dbafd36c6822e71ad9680e17
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>
(cherry picked from commit 8614dcebf384b74b283cd352001a65fa26ba925c)
src/os/chain_xattr.cc
src/test/objectstore/chain_xattr.cc