• A
    rbd: get snapshot name for a v2 image · b8b1e2db
    Alex Elder 提交于
    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: NAlex Elder <elder@inktank.com>
    Reviewed-by: NJosh Durgin <josh.durgin@inktank.com>
    b8b1e2db
rbd.c 75.7 KB