• Alex Elder's avatar
    rbd: rearrange rbd_header_from_disk() · 6a52325f
    Alex Elder authored
    This just moves code around for the most part.  It was pulled out as
    a separate patch to avoid cluttering up some upcoming patches which
    are more substantive.  The point is basically to group everything
    related to initializing the snapshot context together.
    
    The only functional change is that rbd_header_from_disk() now
    ensures the (in-core) header it is passed is zero-filled.  This
    allows a simpler error handling path in rbd_header_from_disk().
    Signed-off-by: default avatarAlex Elder <elder@inktank.com>
    Reviewed-by: default avatarJosh Durgin <josh.durgin@inktank.com>
    6a52325f
rbd.c 61.2 KB