@@ -980,11 +980,12 @@ message NodeStageVolumeRequest {
980
980
981
981
// The path to which the volume MAY be staged. It MUST be an
982
982
// absolute path in the root filesystem of the process serving this
983
- // request. The CO SHALL ensure that there is only one
984
- // `staging_target_path` per volume. The CO SHALL ensure that the
985
- // process serving the request has `read` and `write` permission to
986
- // the path, and is able to create files or directories at the path
987
- // if it does not exist.
983
+ // request, and MUST be a directory. The CO SHALL ensure that there
984
+ // is only one `staging_target_path` per volume. The CO SHALL ensure
985
+ // that the path is directory and that the process serving the
986
+ // request has `read` and `write` permission to that directory. The
987
+ // CO SHALL be responsible for creating the directory if it does not
988
+ // exist.
988
989
// This is a REQUIRED field.
989
990
string staging_target_path = 3 ;
990
991
@@ -1043,9 +1044,14 @@ message NodePublishVolumeRequest {
1043
1044
// The path to which the volume will be published. It MUST be an
1044
1045
// absolute path in the root filesystem of the process serving this
1045
1046
// request. The CO SHALL ensure uniqueness of target_path per volume.
1046
- // The CO SHALL ensure that the process serving the request has
1047
- // `read` and `write` permissions to the path, and is able to create
1048
- // files or directories at the path if it does not exist.
1047
+ // The CO SHALL ensure that the parent directory of this path exists
1048
+ // and that the process serving the request has `read` and `write`
1049
+ // permissions to that parent directory.
1050
+ // For volumes with an access type of block, the SP SHALL place the
1051
+ // block device at target_path.
1052
+ // For volumes with an access type of mount, the SP SHALL place the
1053
+ // mounted directory at target_path.
1054
+ // Creation of target_path is the responsibility of the SP.
1049
1055
// This is a REQUIRED field.
1050
1056
string target_path = 4 ;
1051
1057
@@ -1079,6 +1085,7 @@ message NodeUnpublishVolumeRequest {
1079
1085
1080
1086
// The path at which the volume was published. It MUST be an absolute
1081
1087
// path in the root filesystem of the process serving this request.
1088
+ // The SP MUST delete the file or directory it created at this path.
1082
1089
// This is a REQUIRED field.
1083
1090
string target_path = 2 ;
1084
1091
}
0 commit comments