Commit Graph

2 Commits

Author SHA1 Message Date
Sage Weil
a3ad98a3ee 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>
2012-08-17 12:10:05 -07:00
Josh Durgin
90dc565022 librbd: implement read/write from parent images
Put the completion handling logic into new subclases of
librbd::AioRequest, so the caching/non-caching paths can share
logic. These AioRequests replace AioBlockCompletion as representing
the I/O to a single object in an RBD image.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-08-03 18:48:53 -07:00