• Alex Elder's avatar
    rbd: get snapshot name for a v2 image · b8b1e2db
    Alex Elder authored
    Define rbd_dev_v2_snap_name() to fetch the name for a particular
    snapshot in a format 2 rbd image.
    
    Define rbd_dev_v2_snap_info() to to be a wrapper for getting the
    name, size, and features for a particular snapshot, using an
    interface that matches the equivalent function for version 1 images.
    
    Define rbd_dev_snap_info() wrapper function and use it to call the
    appropriate function for getting the snapshot name, size, and
    features, dependent on the rbd image format.
    Signed-off-by: default avatarAlex Elder <elder@inktank.com>
    Reviewed-by: default avatarJosh Durgin <josh.durgin@inktank.com>
    b8b1e2db
rbd.c 75.7 KB