]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: hide ENOENT on discard
authorSage Weil <sage@inktank.com>
Fri, 17 Aug 2012 19:10:05 +0000 (12:10 -0700)
committerSage Weil <sage@inktank.com>
Fri, 17 Aug 2012 19:10:05 +0000 (12:10 -0700)
commita3ad98a3eef062e9ed51dd2d1e58c593e12c9703
treeed8867edc82561c46cfd58c5e750778cc0be65a2
parent1daeb2dd5b9b413a70c6d65ac4d1998fd5c47b88
librbd: hide ENOENT on discard

AioZero, Truncate, and Remove are only used by discard and resize
operations where ENOENT can be safely ignored.  If that changes in the
future, we'll need to move the enoent flag setting into discard explicitly.

Fixes: #2958
Signed-off-by: Sage Weil <sage@inktank.com>
src/librbd/AioRequest.cc
src/librbd/AioRequest.h