Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

WIP: Add NodeFreeze/UnfreezeVolumeFilesystem Support #407

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
37 changes: 36 additions & 1 deletion csi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,14 @@ service Node {
rpc NodeGetVolumeStats (NodeGetVolumeStatsRequest)
returns (NodeGetVolumeStatsResponse) {}


rpc NodeExpandVolume(NodeExpandVolumeRequest)
returns (NodeExpandVolumeResponse) {}

rpc NodeFreezeVolumeFilesystem(NodeFreezeVolumeFilesystemRequest)
returns (NodeFreezeVolumeFilesystemResponse) {}

rpc NodeUnfreezeVolumeFilesystem(NodeUnfreezeVolumeFilesystemRequest)
returns (NodeUnfreezeVolumeFilesystemResponse) {}

rpc NodeGetCapabilities (NodeGetCapabilitiesRequest)
returns (NodeGetCapabilitiesResponse) {}
Expand Down Expand Up @@ -1233,6 +1237,9 @@ message NodeServiceCapability {
GET_VOLUME_STATS = 2;
// See VolumeExpansion for details.
EXPAND_VOLUME = 3;
// See NodeFreezeVolumeFilesystem and
// NodeUnfreezeVolumeFilesystem for details.
FREEZE_UNFREEZE_VOLUME_FILESYSTEM = 4;
}

Type type = 1;
Expand Down Expand Up @@ -1303,3 +1310,31 @@ message NodeExpandVolumeResponse {
// The capacity of the volume in bytes. This field is OPTIONAL.
int64 capacity_bytes = 1;
}
message NodeFreezeVolumeFilesystemRequest {
// The ID of the volume. This field is REQUIRED.
string volume_id = 1;

// It can be any valid path where volume was previously
// staged or published.
// It MUST be an absolute path in the root filesystem of
// the process serving this request.
// This is a REQUIRED field.
string volume_path = 2;
}

message NodeFreezeVolumeFilesystemResponse {
}
message NodeUnfreezeVolumeFilesystemRequest {
// The ID of the volume. This field is REQUIRED.
string volume_id = 1;

// It can be any valid path where volume was previously
// staged or published.
// It MUST be an absolute path in the root filesystem of
// the process serving this request.
// This is a REQUIRED field.
string volume_path = 2;
}

message NodeUnfreezeVolumeFilesystemResponse {
}
Loading