• Alex Elder's avatar
    libceph: add a compatibility check interface · 72fe25e3
    Alex Elder authored
    An upcoming change implements semantic change that could lead to
    a crash if an old version of the libceph kernel module is used with
    a new version of the rbd kernel module.
    
    In order to preclude that possibility, this adds a compatibilty
    check interface.  If this interface doesn't exist, the modules are
    obviously not compatible.  But if it does exist, this provides a way
    of letting the caller know whether it will operate properly with
    this libceph module.
    
    Perhaps confusingly, it returns false right now.  The semantic
    change mentioned above will make it return true.
    
    This resolves:
        http://tracker.ceph.com/issues/3800Signed-off-by: default avatarAlex Elder <elder@inktank.com>
    Reviewed-by: default avatarJosh Durgin <josh.durgin@inktank.com>
    72fe25e3
ceph_common.c 14.4 KB