• A
    rbd: always set read-only flag in rbd_add() · 51344a38
    Alex Elder 提交于
    Hold off setting the read-only flag in rbd_add() for an image being
    mapped until we have successfully probed the image.  At that point
    we know whether it's a snapshot mapping or not, so we can set the
    read-only flag in that one place rather than doing so (for
    snapshots) in rbd_dev_mapping_set().  To do this, pass a flag to the
    image probe routine indicating whether we want a read-only mapping.
    Signed-off-by: NAlex Elder <elder@inktank.com>
    Reviewed-by: NJosh Durgin <josh.durgin@inktank.com>
    51344a38
rbd.c 129.5 KB