]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/FileStore: fix ENOENT error code for getattrs()
authorSage Weil <sage@inktank.com>
Mon, 7 Oct 2013 12:22:20 +0000 (05:22 -0700)
committerSage Weil <sage@inktank.com>
Fri, 14 Feb 2014 23:25:50 +0000 (15:25 -0800)
commit2795339d3632df975486d51e69762f9f567fb43d
tree788490dae92b53ca7c9bf31e4d2741bb9b12e3b8
parentc158de232fcfb0e39f4b7eaac6dacbaaaee84b5f
os/FileStore: fix ENOENT error code for getattrs()

In commit dc0dfb9e01d593afdd430ca776cf4da2c2240a20 the omap xattrs code
moved up a block and r was no longer local to the block.  Translate
ENOENT -> 0 to compensate.

Fix the same error in _rmattrs().

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 6da4b91c07878e07f23eee563cf1d2422f348c2f)
src/os/FileStore.cc