]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/chain_xattr: handle read on chnk-aligned xattr 5235/head
authorSage Weil <sage@redhat.com>
Wed, 18 Mar 2015 20:49:20 +0000 (13:49 -0700)
committerNathan Cutler <ncutler@suse.com>
Wed, 15 Jul 2015 08:52:30 +0000 (10:52 +0200)
commitda78889d76f641dfcbb80164be32b85e880bb97f
tree09c7a76d74b40133e280605e530c02a99828f357
parent741f0c235228b371486574ba0c3fbf55729e03bd
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)

Conflicts:
    src/test/objectstore/chain_xattr.cc
        added #define FILENAME
src/os/chain_xattr.cc
src/test/objectstore/chain_xattr.cc