weizhouapache commented on issue #3900: 4.14 systemvm root disk size
URL: https://github.com/apache/cloudstack/pull/3900#issuecomment-588890755
 
 
   @rhtyd 
   if the specified value is small than template size, then it will not be 
used. "-1" and "0" makes no difference actually.
   
   
   ```
           Long size = _tmpltMgr.getTemplateSize(template.getId(), 
vm.getDataCenterId());
           if (rootDisksize != null) {
               rootDisksize = rootDisksize * 1024 * 1024 * 1024;
               if (rootDisksize > size) {
                   s_logger.debug("Using root disk size of " + rootDisksize + " 
Bytes for volume " + name);
                   size = rootDisksize;
               } else {
                   s_logger.debug("Using root disk size of " + size + " Bytes 
for volume " + name + "since specified root disk size of " + rootDisksize + " 
Bytes is smaller than template");
               }
           }
   ```
   
   
https://github.com/apache/cloudstack/blob/master/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java#L713-L722
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to