Project

General

Profile

Actions

Feature #1480

closed

librbd: image locking

Added by Sage Weil over 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Implement cooperative locking of RBD images (coordinated on the header, of course). Write public class functions to support both exclusive and shared locking, to list lock holders, and to let third parties remove locks. Then implement corresponding librbd functions, and write tests for the new functionality.
Support having multiple locks from the same entity (ie, multiple VMs on the same KVM host) by storing lockers as both the entity and a request-defined cookie.

Actions

Also available in: Atom PDF