Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

spec: Add efficient volume cloning support #244

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions csi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,16 @@ message VolumeContentSource {
string id = 1;
}

message VolumeSource {
// Contains identity information for the existing source volume.
// This field is REQUIRED. Plugins reporting CLONE_VOLUME
// capability MUST support creating a volume from another volume.
string id = 1;
}

oneof type {
SnapshotSource snapshot = 1;
VolumeSource volume = 2;
}
}

Expand Down Expand Up @@ -767,6 +775,11 @@ message ControllerServiceCapability {
// with the snapshot_id as the filter to query whether the
// uploading process is complete or not.
LIST_SNAPSHOTS = 6;
// Plugins supporting volume cloning at the storage level MAY
// report this capability. The source volume must be managed by
// the same plugin. Not all volume sources and parameters
// combinations may work.
CLONE_VOLUME = 7;
}

Type type = 1;
Expand Down
Loading