Revision 6e2a4505dba0cae8faa701426185dfb7b49f537c authored by Alex Elder on 27 March 2013, 14:16:30 UTC, committed by Sage Weil on 29 March 2013, 18:32:07 UTC
A result of ENOENT from a read request for an object that's part of an rbd image indicates that there is a hole in that portion of the image. Similarly, a short read for such an object indicates that the remainder of the read should be interpreted a full read with zeros filling out the end of the request. This behavior is not correct for objects that are not backing rbd image data. Currently rbd_img_obj_request_callback() assumes it should be done for all objects. Change rbd_img_obj_request_callback() so it only does this zeroing for image objects. Encapsulate that special handling in its own function. Add an assertion that the image object request is a bio request, since we assume that (and we currently don't support any other types). This resolves a problem identified here: http://tracker.ceph.com/issues/4559 The regression was introduced by bf0d5f503dc11d6314c0503591d258d60ee9c944. Reported-by: Dan van der Ster <dan@vanderster.com> Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-off-by: Sage Weil <sage@inktank.com>
1 parent d6c0dd6
File | Mode | Size |
---|---|---|
boot | ||
include | ||
kernel | ||
lib | ||
mm | ||
platform | ||
Kconfig | -rw-r--r-- | 5.6 KB |
Kconfig.cpu | -rw-r--r-- | 3.0 KB |
Kconfig.debug | -rw-r--r-- | 1.4 KB |
Kconfig.ide | -rw-r--r-- | 659 bytes |
Makefile | -rw-r--r-- | 1.9 KB |
README | -rw-r--r-- | 1.0 KB |
defconfig | -rw-r--r-- | 1.1 KB |
Computing file changes ...