Function librbd_sys::rbd_break_lock [] [src]

pub unsafe extern "C" fn rbd_break_lock(
    image: rbd_image_t,
    client: *const c_char,
    cookie: *const c_char
) -> c_int

Release a shared or exclusive lock that was taken by the specified client.

Arguments

  • image the image to unlock
  • client the entity holding the lock (as given by rbd_list_lockers())
  • cookie user-defined identifier for the instance of the lock to break

@returns 0 on success, negative error code on failure @returns -ENOENT if the lock is not held by the specified (client, cookie) pair