@@ -25,49 +25,53 @@ option objc_class_prefix = "GCB";
2525option php_namespace = "Google\\Cloud\\Batch\\V1alpha" ;
2626option ruby_package = "Google::Cloud::Batch::V1alpha" ;
2727
28- // Volume and mount parameters to be associated with a TaskSpec. A TaskSpec
29- // might describe zero, one, or multiple volumes to be mounted as part of the
30- // task.
28+ // Volume describes a volume and parameters for it to be mounted to a VM.
3129message Volume {
3230 // The source for the volume.
3331 oneof source {
34- // An NFS source for the volume (could be a Filestore, for example).
32+ // A Network File System (NFS) volume. For example, a
33+ // Filestore file share.
3534 NFS nfs = 1 ;
3635
37- // A persistent disk source for the volume .
36+ // Deprecated: please use device_name instead .
3837 PD pd = 2 [deprecated = true ];
3938
40- // A Google Cloud Storage source for the volume.
39+ // A Google Cloud Storage (GCS) volume.
4140 GCS gcs = 3 ;
4241
43- // Device name of an attached disk
42+ // Device name of an attached disk volume, which should align with a
43+ // device_name specified by
44+ // job.allocation_policy.instances[0].policy.disks[i].device_name or
45+ // defined by the given instance template in
46+ // job.allocation_policy.instances[0].instance_template.
4447 string device_name = 6 ;
4548 }
4649
47- // Mount path for the volume, e.g. /mnt/share
50+ // The mount path for the volume, e.g. /mnt/disks/ share.
4851 string mount_path = 4 ;
4952
50- // Mount options
51- // For Google Cloud Storage, mount options are the global options supported by
52- // gcsfuse tool. Batch will use them to mount the volume with the following
53- // command:
54- // "gcsfuse [global options] bucket mountpoint".
55- // For PD, NFS, mount options are these supported by /etc/fstab. Batch will
56- // use Fstab to mount such volumes.
57- // https://help.ubuntu.com/community/Fstab
53+ // For Google Cloud Storage (GCS), mount options are the options supported by
54+ // the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
55+ // For existing persistent disks, mount options provided by the
56+ // mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
57+ // writing are supported. This is due to restrictions of multi-writer mode
58+ // (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
59+ // For other attached disks and Network File System (NFS), mount options are
60+ // these supported by the mount command
61+ // (https://man7.org/linux/man-pages/man8/mount.8.html).
5862 repeated string mount_options = 5 ;
5963}
6064
61- // Represents an NFS server and remote path: <server>:<remote_path>
65+ // Represents an NFS volume.
6266message NFS {
63- // URI of the NFS server, e.g. an IP address .
67+ // The IP address of the NFS.
6468 string server = 1 ;
6569
66- // Remote source path exported from NFS, e.g., "/share".
70+ // Remote source path exported from the NFS, e.g., "/share".
6771 string remote_path = 2 ;
6872}
6973
70- // Represents a GCP persistent disk
74+ // Deprecated: please use device_name instead.
7175message PD {
7276 // PD disk name, e.g. pd-1.
7377 string disk = 1 ;
@@ -82,7 +86,7 @@ message PD {
8286 bool existing = 3 [deprecated = true ];
8387}
8488
85- // Represents a Google Cloud Storage volume source config .
89+ // Represents a Google Cloud Storage volume.
8690message GCS {
8791 // Remote path, either a bucket name or a subdirectory of a bucket, e.g.:
8892 // bucket_name, bucket_name/subdirectory/
0 commit comments