]> 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>
Sat, 9 Aug 2014 23:33:52 +0000 (16:33 -0700)
commitf7dc58552a9ee228b7fa2a10094e962ed66fe8fd
treef18904bec7883ca13726a333915fcba275e9fa14
parentb65cef678777c1b87d25385595bf0df96168703e
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>
(cherry picked from commit e08b8b66c77be3a3d7f79d91c20b1619571149ee)
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/internal.cc