]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: check return code and error out if invalidate_cache fails
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 24 Apr 2014 21:43:35 +0000 (14:43 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 28 Apr 2014 22:14:47 +0000 (15:14 -0700)
commite08b8b66c77be3a3d7f79d91c20b1619571149ee
tree23aea92f5a7608f3f2812db0a7b2f5241b30041c
parent76a21389080bbda6c7c8e246310bb33b17e01af7
librbd: check return code and error out if invalidate_cache fails

This will only happen when shrinking or rolling back an image is done
while other I/O is in flight to the same ImageCtx. This is unsafe, so
return an error before performing the resize or rollback.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/internal.cc