• Alex Elder's avatar
    rbd: fix parent request size assumption · ebda6408
    Alex Elder authored
    The code that reads object data from the parent for a copyup on
    write request currently assumes that the size of that request is the
    size of a "full" object from the original target image.
    
    That is not necessarily the case.  The parent overlap could reduce
    the request size below that.  To fix that assumption we need to
    record the number of pages in the copyup_pages array, for both an
    image request and an object request.  Rename a local variable in
    rbd_img_obj_parent_read_full_callback() to reflect we're recording
    the length of the parent read request, not the size of the target
    object.
    
    This resolves:
        http://tracker.ceph.com/issues/5038Signed-off-by: default avatarAlex Elder <elder@inktank.com>
    Reviewed-by: default avatarJosh Durgin <josh.durgin@inktank.com>
    ebda6408
rbd.c 129 KB