Function librbd_sys::rbd_unlock
[−]
[src]
pub unsafe extern "C" fn rbd_unlock(
image: rbd_image_t,
cookie: *const c_char
) -> c_int
Release a shared or exclusive lock on the image.
Arguments
image
the image to unlockcookie
user-defined identifier for the instance of the lock @returns 0 on success, negative error code on failure @returns -ENOENT if the lock is not held by the specified (client, cookie) pair