@@ -505,15 +505,22 @@ class Disk(proto.Message):
505
505
size_gb (int):
506
506
Disk size in GB.
507
507
508
- For persistent disk, this field is ignored if
509
- ``data_source`` is ``image`` or ``snapshot``. For local SSD,
510
- size_gb should be a multiple of 375GB, otherwise, the final
511
- size will be the next greater multiple of 375 GB. For boot
512
- disk, Batch will calculate the boot disk size based on
513
- source image and task requirements if you do not speicify
514
- the size. If both this field and the boot_disk_mib field in
515
- task spec's compute_resource are defined, Batch will only
516
- honor this field.
508
+ **Non-Boot Disk**: If the ``type`` specifies a persistent
509
+ disk, this field is ignored if ``data_source`` is set as
510
+ ``image`` or ``snapshot``. If the ``type`` specifies a local
511
+ SSD, this field should be a multiple of 375 GB, otherwise,
512
+ the final size will be the next greater multiple of 375 GB.
513
+
514
+ **Boot Disk**: Batch will calculate the boot disk size based
515
+ on source image and task requirements if you do not speicify
516
+ the size. If both this field and the ``boot_disk_mib`` field
517
+ in task spec's ``compute_resource`` are defined, Batch will
518
+ only honor this field. Also, this field should be no smaller
519
+ than the source disk's size when the ``data_source`` is set
520
+ as ``snapshot`` or ``image``. For example, if you set an
521
+ image as the ``data_source`` field and the image's default
522
+ disk size 30 GB, you can only use this field to make the
523
+ disk larger or equal to 30 GB.
517
524
disk_interface (str):
518
525
Local SSDs are available through both "SCSI"
519
526
and "NVMe" interfaces. If not indicated, "NVMe"
0 commit comments