@@ -25,46 +25,50 @@ option objc_class_prefix = "GCB";
2525option php_namespace = "Google\\Cloud\\Batch\\V1" ;
2626option ruby_package = "Google::Cloud::Batch::V1" ;
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 Google Cloud Storage source for the volume.
36+ // A Google Cloud Storage (GCS) volume.
3837 GCS gcs = 3 ;
3938
40- // Device name of an attached disk
39+ // Device name of an attached disk volume, which should align with a
40+ // device_name specified by
41+ // job.allocation_policy.instances[0].policy.disks[i].device_name or
42+ // defined by the given instance template in
43+ // job.allocation_policy.instances[0].instance_template.
4144 string device_name = 6 ;
4245 }
4346
44- // Mount path for the volume, e.g. /mnt/share
47+ // The mount path for the volume, e.g. /mnt/disks/ share.
4548 string mount_path = 4 ;
4649
47- // Mount options
48- // For Google Cloud Storage, mount options are the global options supported by
49- // gcsfuse tool. Batch will use them to mount the volume with the following
50- // command:
51- // "gcsfuse [global options] bucket mountpoint".
52- // For PD, NFS, mount options are these supported by /etc/fstab. Batch will
53- // use Fstab to mount such volumes.
54- // https://help.ubuntu.com/community/Fstab
50+ // For Google Cloud Storage (GCS), mount options are the options supported by
51+ // the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
52+ // For existing persistent disks, mount options provided by the
53+ // mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
54+ // writing are supported. This is due to restrictions of multi-writer mode
55+ // (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
56+ // For other attached disks and Network File System (NFS), mount options are
57+ // these supported by the mount command
58+ // (https://man7.org/linux/man-pages/man8/mount.8.html).
5559 repeated string mount_options = 5 ;
5660}
5761
58- // Represents an NFS server and remote path: <server>:<remote_path>
62+ // Represents an NFS volume.
5963message NFS {
60- // URI of the NFS server, e.g. an IP address .
64+ // The IP address of the NFS.
6165 string server = 1 ;
6266
63- // Remote source path exported from NFS, e.g., "/share".
67+ // Remote source path exported from the NFS, e.g., "/share".
6468 string remote_path = 2 ;
6569}
6670
67- // Represents a Google Cloud Storage volume source config .
71+ // Represents a Google Cloud Storage volume.
6872message GCS {
6973 // Remote path, either a bucket name or a subdirectory of a bucket, e.g.:
7074 // bucket_name, bucket_name/subdirectory/
0 commit comments