mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
cephfs: add snapshotlock and operationlock to controllerserver
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
66827facc3
commit
c968380134
@ -36,6 +36,13 @@ type ControllerServer struct {
|
|||||||
// A map storing all volumes with ongoing operations so that additional operations
|
// A map storing all volumes with ongoing operations so that additional operations
|
||||||
// for that same volume (as defined by VolumeID/volume name) return an Aborted error
|
// for that same volume (as defined by VolumeID/volume name) return an Aborted error
|
||||||
VolumeLocks *util.VolumeLocks
|
VolumeLocks *util.VolumeLocks
|
||||||
|
|
||||||
|
// A map storing all snapshots with ongoing operations so that additional operations
|
||||||
|
// for that same snapshot (as defined by SnapshotID/snapshot name) return an Aborted error
|
||||||
|
SnapshotLocks *util.VolumeLocks
|
||||||
|
|
||||||
|
// A map storing all volumes/snapshots with ongoing operations.
|
||||||
|
OperationLocks *util.OperationLock
|
||||||
}
|
}
|
||||||
|
|
||||||
// createBackingVolume creates the backing subvolume and on any error cleans up any created entities.
|
// createBackingVolume creates the backing subvolume and on any error cleans up any created entities.
|
||||||
|
Loading…
Reference in New Issue
Block a user